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.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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 {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.octoturge.mcmapper.forge1710;
|
||||
|
||||
/**
|
||||
* Stub for the 1.7.10 leaf (Phase 9 — higher priority than 26.1.2, ships after 1.12.2 proves
|
||||
* the architecture). Not wired to the Forge {@code @Mod} annotation yet since this leaf's
|
||||
* ForgeGradle 2.1 toolchain isn't active in the root build — see build.gradle.
|
||||
*/
|
||||
public class MCMapperMod {
|
||||
public static final String MOD_ID = "mcmapper";
|
||||
public static final String VERSION = "0.1.0-SNAPSHOT";
|
||||
}
|
||||
Reference in New Issue
Block a user