SpongePowered / VanillaGradle

A toolchain for Minecraft: Java Edition that builds a workspace to interact with the game using the official mappings provided to the public by Mojang Studios.
MIT License
91 stars 18 forks source link

[Request] Add task to re-obfuscate a jar #69

Open mezz opened 2 years ago

mezz commented 2 years ago

Hello,

I would like to publish obfuscated library jars using VanillaGradle. Currently there is no good way to do this. I tried to work around VanillaGradle by trying to use ForgeGradle or FabricLoom to do the obfuscation, but they are also not really set up to do this well at all. Their obfuscation tasks are set up to work on jars in-place or to only work on specific jar tasks, so they are not general or composable enough to work for this purpose.

Could VanillaGradle offer a way to obfuscate a target dev jar?

zml2008 commented 2 years ago

It's on the roadmap, once #47 is completed (that specific PR is not up to date, glitch has a branch that has updated for FART)

mezz commented 2 years ago

Cool, thanks! I'll watch this issue for any updates.

I was able to find the branch here: https://github.com/theglitch76-forks/VanillaGradle/commit/2f9277433ff956baa858ebc03f39c5d7f3fd8318

mezz commented 3 months ago

@zml2008 sorry to bug you, but has the status of this feature changed? I haven't kept up on VG development and wanted to check in to see if it's possible. Let me know if there's something I can work on.

zml2008 commented 3 months ago

nah sorry, life's been super busy and seems like it will continue being busy - it seems reasonably possible to do a standalone remap task but it's not something I'd have time to look at in the near future I'm afraid