[1.7.10] Fix reobf task missing fields due to incorrect classpath
The reobf task was not handling certain fields because it was missing the respective classes on its classpath because we removed MC&deps from the compile configuration.
This commit is contained in:
@@ -164,6 +164,11 @@ if (mcVersion <= 10710) {
|
||||
compileClasspath += configurations.minecraft + configurations.minecraftDeps
|
||||
runtimeClasspath += configurations.minecraft + configurations.minecraftDeps + configurations.forgeGradleStartClass
|
||||
}
|
||||
// Also need to reconfigure the reobf task, so it can properly re-obfuscates inherited members
|
||||
tasks.reobf.obfOutput.all { artifact ->
|
||||
artifact.getFile() // force resolve
|
||||
artifact.classpath += configurations.minecraft + configurations.minecraftDeps
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user