diff --git a/Fabric/build.gradle b/Fabric/build.gradle index e20da3d..4193a20 100644 --- a/Fabric/build.gradle +++ b/Fabric/build.gradle @@ -55,6 +55,12 @@ tasks.withType(JavaCompile) { source(project(":Common").sourceSets.main.allSource) } +// Workaround for SpongePowered/MixinGradle#38 +afterEvaluate { + tasks.configureReobfTaskForReobfJar.mustRunAfter(tasks.compileJava) + tasks.configureReobfTaskForReobfJarJar.mustRunAfter(tasks.compileJava) +} + jar { from("LICENSE") { rename { "${it}_${mod_name}" } diff --git a/Forge/build.gradle b/Forge/build.gradle index 8addafa..d8f290a 100644 --- a/Forge/build.gradle +++ b/Forge/build.gradle @@ -83,6 +83,12 @@ dependencies { annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' } +// Workaround for SpongePowered/MixinGradle#38 +afterEvaluate { + tasks.configureReobfTaskForReobfJar.mustRunAfter(tasks.compileJava) + tasks.configureReobfTaskForReobfJarJar.mustRunAfter(tasks.compileJava) +} + mixin { add sourceSets.main, "${mod_id}.refmap.json" config "${mod_id}.mixins.json"