-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathsettings.gradle.kts
34 lines (31 loc) · 1019 Bytes
/
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
dependencyResolutionManagement {
repositories {
val inChina = System.getProperty("user.timezone") in arrayOf("Asia/Shanghai", "GMT+08:00")
// mavenLocal()
mavenCentral()
maven(url = "https://www.jitpack.io") {
content {
excludeModule("cf.wayzer", "ScriptAgent")
}
}
//ScriptAgent
if (!inChina) {
maven("https://maven.tinylake.top/") //cloudFlare mirror
} else {
maven {
url = uri("https://packages.aliyun.com/maven/repository/2102713-release-0NVzQH/")
credentials {
username = "609f6fb4aa6381038e01fdee"
password = "h(7NRbbUWYrN"
}
}
}
}
}
include("scripts")
file("scripts").listFiles()?.forEach {
if (it.isDirectory && it.name.startsWith("@")) {
include("scripts:${it.name.substring(1)}")
project(":scripts:${it.name.substring(1)}").projectDir = it
}
}