forked from WalletConnect/WalletConnectKotlinV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
43 lines (40 loc) · 1.02 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
rootProject.name = "WalletConnect"
val excludedDirs = listOf(
".idea",
".git",
"build",
".gradle",
".github",
"buildSrc",
"gradle",
"docs",
"licenses",
"common",
"signSDK",
"chatSDK",
"authSDK",
"coreSDK",
"web3wallet",
"web3inbox",
"walletconnectv2"
)
// TODO: Add to rootModules when new module is added to the project root directory
val rootModules = listOf("foundation")
File(rootDir.path).listFiles { file -> file.isDirectory && file.name !in excludedDirs }?.forEach { childDir ->
if (childDir.name !in rootModules) {
childDir.listFiles { dir -> dir.isDirectory && dir.name !in excludedDirs}?.forEach { moduleDir ->
val module = ":${moduleDir.parentFile.name}:${moduleDir.name}"
include(module)
project(module).projectDir = moduleDir
}
} else {
include(":${childDir.name}")
}
}
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}