Skip to content

Commit

Permalink
Fix undeclared task dependency in configureReobfTask setup
Browse files Browse the repository at this point in the history
Without it, it may run ahead of the compile task, where the tsrgFile is
missing, and the configuration will not be properly applied

Fixes SpongePowered#38
  • Loading branch information
octylFractal committed Feb 27, 2024
1 parent f800b26 commit 51c72e8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,8 @@ public class MixinExtension {
def configureReobfTaskTask = project.tasks.maybeCreate("configureReobfTaskFor${reobfTask.name.capitalize()}", configureReobfTaskType).configure {
delegate.reobfTask = reobfTask
mappingFiles += tsrgFile
// tsrgFile is generated by compileTask
dependsOn(compileTask)
}
reobfTask.dependsOn configureReobfTaskTask
}
Expand Down

0 comments on commit 51c72e8

Please sign in to comment.