mirror of
https://github.com/wisplite/crystalline-sky.git
synced 2026-10-30 13:32:18 -05:00
62ed623c1f
neoforge sodium doesn't work from gradle because of jar-in-jar
37 lines
787 B
Kotlin
37 lines
787 B
Kotlin
architectury.neoForge()
|
|
|
|
val inCI = rootProject.extra["inCI"] as Boolean
|
|
|
|
loom {
|
|
neoForge {
|
|
runs.configureEach {
|
|
// force proper color logs
|
|
vmArg("-Dterminal.jline=true")
|
|
}
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "NeoForged"
|
|
url = uri("https://maven.neoforged.net/releases")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
neoForge(libs.nf)
|
|
|
|
modCompileOnly(libs.sodium.neoforge)
|
|
/*if (!inCI && "enable_sodium"().toBoolean()) { // this doesn't work, because of jar-in-jar
|
|
modLocalRuntime(libs.sodium.neoforge)
|
|
}*/
|
|
|
|
compileOnly(annotationProcessor(libs.mixinextras.common.get())!!)!!
|
|
implementation(include(libs.mixinextras.neoforge.get())!!)!!
|
|
}
|
|
|
|
operator fun String.invoke(): String {
|
|
return rootProject.ext[this] as? String
|
|
?: throw IllegalStateException("Property $this is not defined")
|
|
}
|