LibJF/build.gradle

42 lines
1019 B
Groovy

apply from: "https://jfmods.gitlab.io/scripts/jfmod.gradle"
allprojects {
sourceSets {
testmod {
compileClasspath += main.compileClasspath
runtimeClasspath += main.runtimeClasspath
}
}
loom {
runs {
testmodClient {
client()
ideConfigGenerated project.rootProject == project
name = "Testmod Client"
source sourceSets.testmod
}
testmodServer {
server()
ideConfigGenerated project.rootProject == project
name = "Testmod Server"
source sourceSets.testmod
}
}
}
dependencies {
modRuntimeOnly modCompileOnly("com.terraformersmc:modmenu:2.0.14")
modRuntimeOnly("net.fabricmc.fabric-api:fabric-api:${project.fabric_version}")
}
}
subprojects {
dependencies {
testmodImplementation sourceSets.main.output
}
}
sourceSets {
testmod
}