2021-02-18 14:34:33 +01:00
|
|
|
rootProject.name = "viabackwards-parent"
|
|
|
|
|
2021-04-14 13:58:59 +02:00
|
|
|
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
|
|
|
|
enableFeaturePreview("VERSION_CATALOGS")
|
|
|
|
|
2021-02-18 14:34:33 +01:00
|
|
|
setupViaSubproject("common")
|
|
|
|
setupViaSubproject("bukkit")
|
|
|
|
setupViaSubproject("bungee")
|
|
|
|
setupViaSubproject("velocity")
|
|
|
|
setupViaSubproject("sponge")
|
|
|
|
setupViaSubproject("fabric")
|
2021-02-23 11:29:18 +01:00
|
|
|
|
|
|
|
setupSubproject("viabackwards") {
|
|
|
|
projectDir = file("universal")
|
|
|
|
}
|
2021-02-18 14:34:33 +01:00
|
|
|
|
|
|
|
fun setupViaSubproject(name: String) {
|
|
|
|
setupSubproject("viabackwards-$name") {
|
|
|
|
projectDir = file(name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
|
|
|
|
include(name)
|
|
|
|
project(":$name").apply(block)
|
|
|
|
}
|