Skip to content

Commit

Permalink
[Forge] Add workaround for SpongePowered/MixinGradle#38
Browse files Browse the repository at this point in the history
  • Loading branch information
Hantonik committed Feb 19, 2024
1 parent f588f1e commit 0443f80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import net.darkhax.curseforgegradle.TaskPublishCurseForge
plugins {
id 'net.minecraftforge.gradle' version '6.+'
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
id 'org.spongepowered.mixin' version '0.7.+'
id 'org.spongepowered.mixin' version '0.7-SNAPSHOT'
id 'io.freefair.lombok' version '6.6.+'

id 'idea'
Expand Down Expand Up @@ -76,6 +76,12 @@ dependencies {
annotationProcessor "org.projectlombok:lombok:$lombok_version"
}

// Workaround for SpongePowered/MixinGradle#38
afterEvaluate {
tasks.configureReobfTaskForReobfJar.mustRunAfter(tasks.compileJava)
tasks.configureReobfTaskForReobfJarJar.mustRunAfter(tasks.compileJava)
}

jar.finalizedBy('reobfJar')

java {
Expand Down

0 comments on commit 0443f80

Please sign in to comment.