Skip to content

Commit

Permalink
Workaround for MixinGradle issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Nov 11, 2023
1 parent e352626 commit ecc1278
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}" }
Expand Down
6 changes: 6 additions & 0 deletions Forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ecc1278

Please sign in to comment.