rootProject.name = "viabackwards-parent" enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") enableFeaturePreview("VERSION_CATALOGS") setupViaSubproject("common") setupViaSubproject("bukkit") setupViaSubproject("bungee") setupViaSubproject("velocity") setupViaSubproject("sponge") setupViaSubproject("fabric") setupSubproject("viabackwards") { projectDir = file("universal") } fun setupViaSubproject(name: String) { setupSubproject("viabackwards-$name") { projectDir = file(name) } } inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) { include(name) project(":$name").apply(block) }