MixinGradle icon indicating copy to clipboard operation
MixinGradle copied to clipboard

Mixins aren't properly reobfuscated if gradle runs configureReobfTaskFor* task before compileJava

Open Niko-sk2x opened this issue 3 years ago • 1 comments

As in the title. Gradle is able to shuffle task execution around a bit as long as task dependency constraints are met. I ran into a situation where gradle reordered my tasks such that configureReobfTaskForShadowJar ran before compileJava in some cases. This breaks mixin reobf. The solution is to specify mustRunAfter("compileJava") for that those tasks

Niko-sk2x avatar Jul 13 '22 23:07 Niko-sk2x

Has this been looked into? These workarounds linked above will just add more magic boilerplate to everyone's buildscripts until we forget what it was supposed to fix.

tterrag1098 avatar Oct 28 '23 04:10 tterrag1098