-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
67 lines (58 loc) · 1.42 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
val modules = hashMapOf<String, String>()
rootProject.projectDir.listFiles()
?.forEach {
findSubProjects(it)
}
fun findSubProjects(file: File) {
if (file.name.startsWith(".")) {
return
}
if (file.name == "build.gradle.kts" || file.name == "build.gradle") {
modules[file.parentFile.name] = file.parentFile.path
return
}
if (file.isDirectory) {
file.listFiles()
?.forEach {
findSubProjects(it)
}
}
}
for (project in rootProject.children) {
if (modules.containsKey(project.name)) {
val directory = modules[project.name] ?: continue
project.projectDir = File(directory)
}
}
rootProject.name = "SimTong-Android"
include(":app")
include(":feature")
include(":common-util")
include(":core")
include(":core-design-system")
include(":feature:feature-mypage")
include(":feature:feature-onboarding")
include(":domain")
include(":data")
include(":local")
include(":remote")
include(":navigator")
include(":di")
include(":feature:feature-home")
include(":model")
include(":common-compose")