-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
39 lines (34 loc) · 1.08 KB
/
settings.gradle.kts
File metadata and controls
39 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
rootProject.name = "spring-boot-java-structured-concurrency"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
create("local") {
from(files("gradle/local.versions.toml"))
}
}
}
pluginManagement {
repositories {
mavenCentral()
}
}
/**
* Include all subprojects within the given directory.
* This function scans the given directory for subdirectories containing a build.gradle.kts file.
* @param directory The relative path (from the root project) of the directory containing subprojects.
*/
fun includeSubprojects(directory: String) {
File(rootDir, directory).listFiles()
?.filter { it.isDirectory && File(it, "build.gradle.kts").exists() }
?.forEach { dir ->
val projectName = ":${dir.name}"
include(projectName)
project(projectName).projectDir = dir
}
}
// Include all subprojects in the "apps" and "modules" directories
includeSubprojects("apps")
includeSubprojects("modules")