From 51c72e8ca08a03a71323734b834f7c39c1662716 Mon Sep 17 00:00:00 2001 From: Octavia Togami Date: Mon, 26 Feb 2024 22:54:33 -0800 Subject: [PATCH] Fix undeclared task dependency in configureReobfTask setup Without it, it may run ahead of the compile task, where the tsrgFile is missing, and the configuration will not be properly applied Fixes #38 --- .../org/spongepowered/asm/gradle/plugins/MixinExtension.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/groovy/org/spongepowered/asm/gradle/plugins/MixinExtension.groovy b/src/main/groovy/org/spongepowered/asm/gradle/plugins/MixinExtension.groovy index 5acb560..9b9f28b 100644 --- a/src/main/groovy/org/spongepowered/asm/gradle/plugins/MixinExtension.groovy +++ b/src/main/groovy/org/spongepowered/asm/gradle/plugins/MixinExtension.groovy @@ -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 }