-
Notifications
You must be signed in to change notification settings - Fork 134
/
settings.gradle
38 lines (36 loc) · 1.33 KB
/
settings.gradle
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
rootProject.name = "TheRouter"
apply from: "${rootDir}/therouter.gradle"
if (Boolean.valueOf(gradle8)) {
rootProject.buildFileName = "agp8-build.gradle"
pluginManagement {
repositories {
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
maven { url 'https://s01.oss.sonatype.org/content/groups/staging/' }
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { url 'https://maven.therouter.cn:8443/repository/maven-public/' }
maven { url 'https://s01.oss.sonatype.org/content/groups/staging/' }
}
}
}
getLocalProperties().entrySet().each { entry ->
def prefix = ""
// if (entry.key.startsWith(prefix) && Boolean.valueOf(entry.value)) {
if (Boolean.valueOf(entry.value)) {
def moduleName = entry.key
if (!String.valueOf(moduleName).isEmpty()) {
def file = file(moduleName)
if (file.exists()) {
include ":$moduleName"
def moduleProject = project(":$moduleName")
moduleProject.projectDir = file
if (Boolean.valueOf(gradle8)) {
moduleProject.buildFileName = "agp8-build.gradle"
}
}
}
}
}