buildscript { repositories { mavenCentral() maven { url = 'https://maven.minecraftforge.net/' } } dependencies { classpath('com.anatawa12.forge:ForgeGradle:1.2-1.1.+') { changing = true } } } // Legacy ForgeGradle 1.2 (the FG lineage 1.7.10 actually needs — one major generation older // than forge-1_12_2's FG2.3), via anatawa12's modern-Gradle-compatible fork. See // THIRD_PARTY_NOTICES.md. apply plugin: 'forge' // Forge 1.7.10 runs on Java 6-8; we target 8 to match the other legacy leaf and common/. sourceCompatibility = targetCompatibility = '1.8' compileJava.options.encoding = 'UTF-8' // Pull in the shared common/ source directly — see common/README.md for why it's not a // compiled dependency. sourceSets { main { java { srcDir '../common/src/main/java' } } } minecraft { version = "${project.minecraft_1_7_10_version}-${project.forge_1_7_10_version}" runDir = "run" } dependencies { }