50 lines
1.1 KiB
Groovy
50 lines
1.1 KiB
Groovy
plugins {
|
|
id 'multiloader-loader'
|
|
id 'net.neoforged.moddev'
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
name = "Shedaniel"
|
|
url "https://maven.shedaniel.me/"
|
|
}
|
|
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
|
|
neoForge {
|
|
version = neoforge_version
|
|
// Automatically enable neoforge AccessTransformers if the file exists
|
|
def at = project(':Common').file('src/main/resources/META-INF/accesstransformer.cfg')
|
|
if (at.exists()) {
|
|
accessTransformers.from(at.absolutePath)
|
|
}
|
|
runs {
|
|
configureEach {
|
|
systemProperty('neoforge.enabledGameTestNamespaces', mod_id)
|
|
ideName = "NeoForge ${it.name.capitalize()} (${project.path})"
|
|
}
|
|
client {
|
|
client()
|
|
}
|
|
data {
|
|
clientData()
|
|
}
|
|
server {
|
|
server()
|
|
}
|
|
}
|
|
mods {
|
|
"${mod_id}" {
|
|
sourceSet sourceSets.main
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
dependencies {
|
|
compileOnly "me.shedaniel.cloth:cloth-config-neoforge:${cloth_config_version}"
|
|
}
|
|
|
|
sourceSets.main.resources { srcDir 'src/generated/resources' }
|