Files

53 lines
1.8 KiB
Groovy

// AthenaCore - Forge 1.12.2 mod (auth verification + custom skins + ban enforcement).
// Toolchain: JDK 8 + ForgeGradle 2.3 + Gradle 4.10.3 (the only combo that builds 1.12.2).
// Uses the maintained anatawa12 ForgeGradle 2.3 fork, which fixes Forge userdev
// resolution against the modern Forge maven (the original FG 2.3 can no longer find
// forge-1.12.2-...-userdev.jar). Built in CI (.github/workflows/athenacore-mod.yml).
buildscript {
// The anatawa12 ForgeGradle 2.3 fork is published on Maven Central and fixes
// Forge 1.12.2 userdev resolution against the modern Forge maven.
repositories {
mavenCentral()
maven { name = 'forge'; url = 'https://maven.minecraftforge.net' }
}
dependencies {
classpath('com.anatawa12.forge:ForgeGradle:2.3-1.0.+') { changing = true }
}
}
apply plugin: 'net.minecraftforge.gradle.forge'
version = '1.0.0'
group = 'com.athenastudios.athenacore'
archivesBaseName = 'athenacore'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
options.encoding = 'UTF-8'
}
minecraft {
// Build against 14.23.5.2847: it is the 1.12.2 Forge build whose "userdev"
// artifact is still published on maven.minecraftforge.net (2854/2860 were
// republished as "userdev3" only, which FG 2.3 cannot consume). The mod is
// binary-compatible and runs fine on any 14.23.5.x server (e.g. 2860).
version = '1.12.2-14.23.5.2847'
runDir = 'run'
mappings = 'stable_39'
}
jar {
manifest {
attributes([
'Specification-Title' : 'AthenaCore',
'Specification-Version' : '1.0.0',
'Implementation-Title' : 'AthenaCore',
'Implementation-Version': '1.0.0'
])
}
}