2021-01-21 11:58:52 +01:00
|
|
|
import java.util.Locale
|
|
|
|
|
|
|
|
val forkName = "Yatopia"
|
|
|
|
val forkNameLowercase = forkName.toLowerCase(Locale.ENGLISH)
|
|
|
|
|
|
|
|
rootProject.name = forkNameLowercase
|
|
|
|
|
|
|
|
setupSubproject("$forkNameLowercase-api") {
|
|
|
|
projectDir = File("$forkName-API")
|
|
|
|
buildFileName = "../subprojects/api.gradle.kts"
|
|
|
|
}
|
|
|
|
setupSubproject("$forkNameLowercase-server") {
|
|
|
|
projectDir = File("$forkName-Server")
|
|
|
|
buildFileName = "../subprojects/server.gradle.kts"
|
|
|
|
}
|
2021-01-25 17:15:36 +01:00
|
|
|
setupSubproject("Yatoclip") { }
|
2021-01-21 11:58:52 +01:00
|
|
|
|
|
|
|
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
|
|
|
|
include(name)
|
|
|
|
project(":$name").apply(block)
|
|
|
|
}
|