mirror of
https://github.com/wisplite/crystalline-sky.git
synced 2026-10-30 13:32:18 -05:00
Multiloader II
setup gradle
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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()) {
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user