20 lines
426 B
Plaintext
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
|
|
} |