2022-01-15 08:18:02 +08:00
|
|
|
tasks.register("clean") {
|
|
|
|
gradle.includedBuilds.forEach {
|
2023-12-07 00:19:18 +08:00
|
|
|
// workaround for https://github.com/neoforged/NeoGradle/issues/18
|
|
|
|
if (it.name == "neoforge-1.20.2") return@forEach
|
|
|
|
|
2022-01-15 08:18:02 +08:00
|
|
|
dependsOn(it.task(":clean"))
|
|
|
|
}
|
|
|
|
|
|
|
|
doFirst {
|
|
|
|
if (!file("build").deleteRecursively())
|
|
|
|
throw java.io.IOException("Failed to delete build directory!")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.register("build") {
|
|
|
|
gradle.includedBuilds.forEach {
|
2024-03-04 20:10:00 +08:00
|
|
|
if (it.name == "BlueMapCore") return@forEach
|
|
|
|
if (it.name == "BlueMapCommon") return@forEach
|
|
|
|
|
2022-01-15 08:18:02 +08:00
|
|
|
dependsOn(it.task(":release"))
|
|
|
|
}
|
|
|
|
}
|
2022-01-15 08:28:34 +08:00
|
|
|
|
|
|
|
tasks.register("test") {
|
|
|
|
gradle.includedBuilds.forEach {
|
|
|
|
dependsOn(it.task(":test"))
|
|
|
|
}
|
|
|
|
}
|
2022-04-21 04:54:27 +08:00
|
|
|
|
|
|
|
tasks.register("spotlessApply") {
|
|
|
|
gradle.includedBuilds.forEach {
|
|
|
|
dependsOn(it.task(":spotlessApply"))
|
|
|
|
}
|
|
|
|
}
|
2022-10-25 05:24:41 +08:00
|
|
|
|
2023-06-09 04:15:21 +08:00
|
|
|
tasks.register("spotlessCheck") {
|
|
|
|
gradle.includedBuilds.forEach {
|
|
|
|
dependsOn(it.task(":spotlessCheck"))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-25 05:24:41 +08:00
|
|
|
tasks.register("publish") {
|
|
|
|
gradle.includedBuilds.forEach {
|
2024-03-04 20:10:00 +08:00
|
|
|
if (it.name == "BlueMapCore") return@forEach
|
|
|
|
if (it.name == "BlueMapCommon") return@forEach
|
|
|
|
|
2022-10-25 05:24:41 +08:00
|
|
|
dependsOn(it.task(":publish"))
|
|
|
|
}
|
|
|
|
}
|
2024-05-07 22:45:24 +08:00
|
|
|
|
|
|
|
// adding repositories here so intellij can download source-files and javadocs
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven ("https://libraries.minecraft.net")
|
|
|
|
maven ("https://repo.papermc.io/repository/maven-public/")
|
|
|
|
maven ("https://repo.bluecolored.de/releases")
|
|
|
|
}
|