wcloud/bom/build.gradle.kts
2026-11-06 17:57:08 +01:00

20 lines
426 B
Plaintext

plugins {
id("java-platform")
}
dependencies {
constraints {
collectSubProjects(rootProject, mutableListOf()).forEach {
api(project(it))
}
}
}
fun collectSubProjects(root: Project, paths: MutableList<String>): List<String> {
root.subprojects.forEach {
paths.add(it.path)
collectSubProjects(it, paths)
}
// just to make it look cleaner :)
return paths
}