-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
115 lines (104 loc) · 4.33 KB
/
settings.gradle.kts
File metadata and controls
115 lines (104 loc) · 4.33 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
pluginManagement {
val defaultSpringBootBomVersion: String by settings
plugins {
id("io.spring.dependency-management") version "1.1.7" apply false
id("org.springframework.boot") version defaultSpringBootBomVersion apply false
id("net.minecraftforge.licenser") version "1.2.0" apply false
// @see https://github.com/jk1/Gradle-License-Report/issues/339
id("com.github.jk1.dependency-license-report") version "3.0.1" apply false
id("com.namics.oss.gradle.license-enforce-plugin") version "1.7.0" apply false
id("io.gitee.pkmer.pkmerboot-central-publisher") version "1.1.1" apply false
// https://github.com/melix/jmh-gradle-plugin
id("me.champeau.jmh") version "0.7.3" apply false
// https://github.com/tbroyer/gradle-errorprone-plugin
id("net.ltgt.errorprone") version "4.3.0" apply false
}
repositories {
listOf(
"https://maven.aliyun.com/repository/public",
"https://mirrors.cloud.tencent.com/nexus/repository/maven-public",
"https://repo.huaweicloud.com/repository/maven",
// "https://maven.aliyun.com/repository/gradle-plugin",
).map {
maven {
url = uri(it)
name = it
content {
// 上面几个镜像都没这个依赖
excludeGroup("net.minecraftforge.licenser")
excludeGroup("com.github.jk1")
// 排除腾讯云 404 的依赖
// if (it.contains("tencent")) {
// excludeGroup("com.github.jk1")
// }
}
}
}
gradlePluginPortal()
mavenCentral()
mavenLocal()
}
}
rootProject.name = "xtream-codec"
include("xtream-codec-dependencies")
include("xtream-codec-base")
include("xtream-codec-core")
include("xtream-codec-server-reactive")
include("ext")
include("ext:jt")
include("ext:jt:jt-808-server-spring-boot-starter-reactive")
include("ext:jt:jt-808-server-dashboard-spring-boot-starter-reactive")
include("ext:jt:jt-1078-server-spring-boot-starter-reactive")
include("ext:jt:jt-1078-server-dashboard-spring-boot-starter-reactive")
include("debug")
include("debug:xtream-codec-core-debug")
include("debug:xtream-codec-server-reactive-debug-tcp")
include("debug:xtream-codec-server-reactive-debug-udp")
include("debug:jt")
include("debug:jt:jt-1078-server-spring-boot-starter-reactive-debug")
include("debug:jt:jt-808-server-spring-boot-starter-reactive-debug")
include("quick-start")
include("quick-start:jt")
include("quick-start:jt:jt-808-attachment-server-quick-start-blocking")
include("quick-start:jt:jt-808-attachment-server-quick-start-nonblocking")
include("quick-start:jt:jt-808-server-quick-start")
include("quick-start:jt:jt-808-server-quick-start-with-dashboard")
include("quick-start:jt:jt-808-server-quick-start-with-storage-nonblocking")
include("quick-start:jt:jt-808-server-quick-start-with-storage-blocking")
include("quick-start:jt:jt-1078-server-quick-start-nonblocking")
include("quick-start:jt:jt-1078-server-quick-start-blocking")
dependencyResolutionManagement {
repositories {
extraMavenRepositoryUrls().forEach {
maven(it)
}
mavenCentral()
mavenLocal()
}
}
setBuildFileName(rootProject)
fun setBuildFileName(project: ProjectDescriptor) {
project.children.forEach {
it.buildFileName = "${it.name}.gradle.kts"
assert(it.projectDir.isDirectory())
assert(it.buildFile.isFile())
setBuildFileName(it)
}
}
fun extraMavenRepositoryUrls() = listOf(
// "https://mirrors.cloud.tencent.com/nexus/repository/maven-public",
// "https://repo.huaweicloud.com/repository/maven",
"https://maven.aliyun.com/repository/central",
"https://maven.aliyun.com/repository/public",
"https://maven.aliyun.com/repository/google",
"https://maven.aliyun.com/repository/spring",
// Central
"https://repo1.maven.org/maven2",
"https://maven.aliyun.com/repository/spring-plugin",
"https://maven.aliyun.com/repository/gradle-plugin",
"https://maven.aliyun.com/repository/grails-core",
"https://maven.aliyun.com/repository/apache-snapshots",
"https://plugins.gradle.org/m2/",
// "https://repo.spring.io/release",
// "https://repo.spring.io/snapshot"
)