2021-04-08 10:18:46 +02:00
|
|
|
architectury { platformSetupLoomIde(); forge() }
|
|
|
|
dependencies {
|
|
|
|
forge("net.minecraftforge:forge:${rootProject.architectury.minecraft}-${rootProject.property("forge_version")}")
|
|
|
|
implementation(project(path = ":common")) { isTransitive = false }
|
|
|
|
add("developmentForge", project(path = ":common")) { isTransitive = false }
|
2021-04-08 12:54:54 +02:00
|
|
|
shadowC(project(path = ":common", configuration = "transformProductionForge")) { isTransitive = false }
|
2021-04-08 18:36:45 +02:00
|
|
|
}; loom {
|
|
|
|
useFabricMixin = true
|
|
|
|
if (JavaVersion.current().isJava9Compatible) {
|
|
|
|
runs {
|
2021-04-13 14:43:41 +02:00
|
|
|
val args: MutableList<String> = mutableListOf("-Dfml.earlyprogresswindow=false")
|
|
|
|
args += if (JavaVersion.current() < JavaVersion.VERSION_17) {
|
2021-04-08 18:36:45 +02:00
|
|
|
listOf("--add-exports java.base/sun.security.util=ALL-UNNAMED", "--add-opens java.base/java.util.jar=ALL-UNNAMED")
|
2021-04-13 14:43:41 +02:00
|
|
|
} else listOf("--illegal-access=permit")
|
2021-04-08 18:36:45 +02:00
|
|
|
this.forEach {
|
|
|
|
it.vmArgs(args)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|