2021-04-08 10:18:46 +02:00
|
|
|
architectury { platformSetupLoomIde(); forge() }
|
2021-05-03 10:27:38 +02:00
|
|
|
repositories {
|
2024-07-18 17:43:48 +02:00
|
|
|
maven(url = "https://maven.neoforged.net/releases/")
|
2021-05-03 10:27:38 +02:00
|
|
|
maven(url = "https://thedarkcolour.github.io/KotlinForForge/")
|
|
|
|
}
|
2021-05-18 22:14:35 +02:00
|
|
|
|
2024-07-18 17:43:48 +02:00
|
|
|
|
2021-04-08 10:18:46 +02:00
|
|
|
dependencies {
|
2024-07-18 17:43:48 +02:00
|
|
|
forge("net.neoforged:neoforge:${rootProject.property("forge_version").toString().let {
|
|
|
|
return@let if (it.length > 4) it else "$it.+"
|
|
|
|
}}")
|
2021-05-27 18:45:26 +02:00
|
|
|
implementation("thedarkcolour:kotlinforforge:${rootProject.property("kotlinforforge")}")
|
2024-07-18 17:43:48 +02:00
|
|
|
modApi("me.shedaniel.cloth:cloth-config-neoforge:${rootProject.property("clothconfig_version")}")
|
2023-04-28 16:00:28 +02:00
|
|
|
implementation(project(path = ":common", configuration = "namedElements")) { isTransitive = false }
|
2021-04-08 10:18:46 +02:00
|
|
|
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 {
|
2024-07-18 17:43:48 +02:00
|
|
|
runs {
|
|
|
|
val args: MutableList<String> = mutableListOf("-Dfml.earlyprogresswindow=false")
|
|
|
|
args += listOf("--illegal-access=permit")
|
|
|
|
this.forEach {
|
|
|
|
it.vmArgs(args)
|
2021-04-08 18:36:45 +02:00
|
|
|
}
|
|
|
|
}
|
2021-10-26 23:29:27 +02:00
|
|
|
}
|