-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
38 lines (33 loc) · 1016 Bytes
/
settings.gradle.kts
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
import java.nio.file.FileSystems
rootProject.name = "CallMonitor"
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootDir.walk()
.maxDepth(2)
.filter { file ->
rootDir != file &&
file.isDirectory &&
file.name != rootProject.name &&
file.name != "buildSrc" &&
(file("${file.absolutePath}/build.gradle.kts").exists() ||
file("${file.absolutePath}/build.gradle").exists())
}
.forEach { file ->
val separator = FileSystems.getDefault().separator
val modulePath = file.path.removePrefix(rootProject.projectDir.path)
val moduleId = modulePath.replace(separator, ":")
include(moduleId)
}