Files
MCMapper-Mod/forge-1_12_2/build.gradle
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
1.0 KiB
Groovy

buildscript {
repositories {
mavenCentral()
maven { url = 'https://maven.minecraftforge.net/' }
}
dependencies {
classpath('com.anatawa12.forge:ForgeGradle:2.3-1.0.+') {
changing = true
}
}
}
// Legacy ForgeGradle 2.3, via anatawa12's modern-Gradle-compatible fork of the official
// FG_2.3 branch (net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT doesn't resolve anymore
// and the official plugin never supported Gradle 7+ anyway). See THIRD_PARTY_NOTICES.md.
apply plugin: 'net.minecraftforge.gradle.forge'
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_12_2_version}-${project.forge_1_12_2_version}"
runDir = "run"
mappings = project.mcp_1_12_2_mappings
}
dependencies {
}