Skip to content

Commit a20c37f

Browse files
chore(internal): dynamically determine included projects
1 parent 94de167 commit a20c37f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

settings.gradle.kts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
rootProject.name = "openai-java-root"
22

3-
include("openai-java")
4-
include("openai-java-client-okhttp")
5-
include("openai-java-core")
6-
include("openai-java-spring-boot-starter")
7-
include("openai-java-proguard-test")
8-
include("openai-java-example")
3+
val projectNames = rootDir.listFiles()
4+
?.asSequence()
5+
.orEmpty()
6+
.filter { file ->
7+
file.isDirectory &&
8+
file.name.startsWith("openai-java") &&
9+
file.listFiles()?.asSequence().orEmpty().any { it.name == "build.gradle.kts" }
10+
}
11+
.map { it.name }
12+
.toList()
13+
println("projects: $projectNames")
14+
projectNames.forEach { include(it) }

0 commit comments

Comments
 (0)