Replace FG 2.0 with custom fork for Gradle 3 compatibility

This commit is contained in:
Jonas Herzig
2018-02-28 10:24:37 +01:00
parent d9f318623c
commit 95877be3e6

View File

@@ -25,6 +25,13 @@ subprojects {
exclude group: 'org.ow2.asm', module: 'asm-debug-all'
}
}
configurations.classpath.resolutionStrategy.eachDependency { dep ->
def req = dep.target
// Substitute FG 2.0 with custom fork that works with Gradle 3
if (req.group == 'net.minecraftforge.gradle' && req.name == 'ForgeGradle' && req.version == '2.0-SNAPSHOT') {
dep.useTarget 'com.github.ReplayMod:ForgeGradle:dd521d0'
}
}
}
// Thanks for wasting my time gradle...