-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.gradle
35 lines (33 loc) · 1.01 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
pluginManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}
rootProject.name = "Fei"
include ':app'
debug(ext.baoFolder, "AndroidStudioProjects/Bao", new String[]{"startup", "bao-library"}, "bao")
debug(ext.yongFolder, "Projects/Yong", new String[]{"checks", "library"}, "yong")
def debug(String location, String projectName, String[] modules, String subProjectName) {
def home = System.getProperty("user.home")
def folder
if (location == "local")
folder = file("$home/$projectName/")
else
folder = null
if (folder != null && folder.exists()) {
for (sub in (modules)) {
include("$subProjectName:$sub")
project(":$subProjectName:$sub").projectDir = file("${folder.absolutePath}/$sub")
}
}
}