LibJF/build.gradle

36 lines
1.2 KiB
Groovy
Raw Normal View History

2022-08-28 13:55:15 +02:00
apply from: "https://jfmods.gitlab.io/scripts/gradle/v2.gradle"
2021-04-11 20:23:52 +02:00
2021-09-27 20:55:48 +02:00
allprojects {
if (project.name in rootProject.nonModSubprojects) return
2021-09-27 20:55:48 +02:00
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
}
}
}
2022-05-09 22:53:54 +02:00
2021-09-27 20:55:48 +02:00
dependencies {
2022-08-22 00:12:19 +02:00
modLocalRuntime("com.terraformersmc:modmenu:4.0.5")
modLocalRuntime(fabricApi.module("fabric-command-api-v2", "$project.fabric_version"))
compileOnly("io.gitlab.jfronny:commons:$rootProject.commons_version")
compileOnly("io.gitlab.jfronny:commons-gson:$rootProject.commons_version")
2021-09-27 20:55:48 +02:00
}
2021-04-11 20:23:52 +02:00
}
task copyVersionNumber {
doLast {
java.awt.Toolkit.getDefaultToolkit().getSystemClipboard().setContents(new java.awt.datatransfer.StringSelection("$version"), null)
println("Copied version number: $version")
}
}