-
Notifications
You must be signed in to change notification settings - Fork 86
/
settings.gradle.kts
59 lines (54 loc) · 1.6 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
rootProject.name = "WalletConnect Kotlin"
val excludedDirs = listOf(
"undefined",
".idea",
".git",
"build",
".gradle",
".github",
"buildSrc",
"gradle",
"docs",
"licenses",
"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 {
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
gradlePluginPortal()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenLocal()
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
jcenter() // Warning: this repository is going to shut down soon
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
}