Files
MCMapper-Mod/forge-1_7_10/build.gradle
T
octoturge 621ea7c10d Phase 0: scaffold Gradle multi-project mod skeleton
common/ (shared source) plus three leaf modules: forge-1_12_2 (primary,
Enigmatica 2 target) and forge-1_7_10 both build via anatawa12's
Gradle-7-compatible ForgeGradle 1.2/2.3 forks (verified: both leaves build
clean on Gradle 7.6 / JDK 8). neoforge-26_1 is structurally scaffolded but
excluded from the default build pending its own toolchain in Phase 10.
2026-08-08 14:10:01 +02:00

39 lines
1012 B
Groovy

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 {
}