46 lines
1.1 KiB
Groovy
46 lines
1.1 KiB
Groovy
def modId = project.property("mod_id")
|
|
def neoforgeVersion = project.ext["neoforgeVersion"]
|
|
|
|
maven {
|
|
url = uri("https://repo.spongepowered.org/repository/maven-public/")
|
|
}
|
|
|
|
neoForge {
|
|
version = neoforgeVersion
|
|
validateAccessTransformers = true
|
|
|
|
runs {
|
|
client { client() }
|
|
server { server() }
|
|
data { data() }
|
|
}
|
|
|
|
mods {
|
|
"${modId}" {
|
|
sourceSet(sourceSets.main.get())
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
annotationProcessor("org.spongepowered:mixin:${project.findProperty("mixin_version") ?: "0.8.5"}:processor")
|
|
|
|
compileOnly(annotationProcessor("io.github.llamalad7:mixinextras-common:${project.findProperty("mixin_extras_version") ?: "0.3.5"}"))
|
|
implementation(jarJar("io.github.llamalad7:mixinextras-neoforge:${project.findProperty("mixin_extras_version") ?: "0.3.5"}")) {
|
|
jarJar.ranged(it, "[0.3.5,)")
|
|
}
|
|
}
|
|
|
|
mixin {
|
|
add(sourceSets.main.get(), "${modId}.refmap.json")
|
|
config("${modId}.mixins.json")
|
|
}
|
|
|
|
sourceSets.main {
|
|
resources { srcDir("src/generated/resources") }
|
|
}
|
|
|
|
tasks.jarJar {
|
|
archiveClassifier.set("")
|
|
}
|