pluginManagement { repositories { gradlePluginPortal() mavenCentral() } } rootProject.name = "GameModeInventories-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:, 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 }