From 0b262d1a7483d898e5da417cd3190f9975253234 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Fri, 16 Mar 2018 16:18:41 +0100 Subject: [PATCH] [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. --- versions/common.gradle | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/versions/common.gradle b/versions/common.gradle index 1ff1aec0..1b4da904 100644 --- a/versions/common.gradle +++ b/versions/common.gradle @@ -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 + } } }