2023-02-15 23:03:46 -08:00
|
|
|
rootProject.name = "dough"
|
2023-02-16 19:31:01 -08:00
|
|
|
|
2023-02-17 10:15:42 -08:00
|
|
|
val topLevelModules = rootProject.projectDir.listFiles { item: File ->
|
|
|
|
item.name.startsWith("dough-") &&
|
|
|
|
item.isDirectory &&
|
|
|
|
item.resolve("build.gradle.kts").exists()
|
|
|
|
}?.toList() ?: emptyList()
|
|
|
|
|
|
|
|
val samples = rootProject.projectDir.resolve("samples").listFiles { item: File ->
|
|
|
|
item.isDirectory &&
|
|
|
|
item.resolve("build.gradle.kts").exists()
|
|
|
|
}?.toList() ?: emptyList()
|
|
|
|
|
|
|
|
(topLevelModules + samples).map { file ->
|
|
|
|
file.relativeTo(rootProject.projectDir)
|
|
|
|
}.forEach { file ->
|
|
|
|
include(file.path.replace(File.separator, ":"))
|
|
|
|
}
|