7a8427d130
* Fix compilation on Java versions other than 8 * Add basic support for NeoForge This uses Forge's built-in fml.forgeGroup flag to distinguish Forge and NeoForge's package names. Consequently, this flag's value needs to be passed to most installer-related functions. * Update Javadocs with Forge group parameter * Add Forge group support for manual installs * Assume we're using NeoForge if `--fml.forgeGroup` isn't specified I was hoping not to hardcode any package names here, but this is the only way to unbreak manual installs without unintuitively asking users to add the flag themselves.
22 lines
361 B
Groovy
22 lines
361 B
Groovy
|
|
plugins {
|
|
id "java"
|
|
id "eclipse"
|
|
}
|
|
|
|
sourceCompatibility = targetCompatibility = 1.8
|
|
compileJava {
|
|
sourceCompatibility = targetCompatibility = 1.8
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name = "forge"
|
|
url = "https://maven.minecraftforge.net/"
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly "net.minecraftforge:installer:2.0.24"
|
|
}
|