Files
BuildBattle-OG/settings.gradle.kts
T

16 lines
630 B
Kotlin

rootProject.name = "BuildBattle-OG"
// Fetch submodule content before the libraries below are wired in as subprojects.
ProcessBuilder("sh", "bootstrap.sh").directory(rootDir).inheritIO().start().let {
if (it.waitFor() != 0) throw GradleException("bootstrap.sh failed")
}
// Every git submodule under libs/ with a Gradle build becomes :libs:<name>, like Template-OG.
file("libs")
.listFiles()
?.filter { it.isDirectory && !it.name.startsWith(".") && file("${it.path}/build.gradle.kts").exists() }
?.forEach { dir ->
include(":libs:${dir.name}")
project(":libs:${dir.name}").projectDir = dir
}