-
Notifications
You must be signed in to change notification settings - Fork 114
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
36 lines (32 loc) · 808 Bytes
/
settings.gradle.kts
File metadata and controls
36 lines (32 loc) · 808 Bytes
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
rootProject.name = "Simple Time Tracker"
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
include(
"app",
"domain",
"domain:common",
"core",
"core:common",
"navigation",
"data_local",
"resources",
"wear",
"wear_api",
)
file("features").walkTopDown().maxDepth(2).forEach { dir ->
val isFeatureModule = dir.name.startsWith("feature_")
val isSubModule = dir.name in listOf("api", "views")
if (dir.isDirectory && isFeatureModule) {
include(dir.name)
project(":${dir.name}").projectDir = dir
}
if (dir.isDirectory && isSubModule) {
include(":${dir.parentFile.name}:${dir.name}")
project(":${dir.parentFile.name}:${dir.name}").projectDir = dir
}
}