forked from jjohannes/gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
263 lines (236 loc) · 7.96 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
import org.gradle.api.internal.FeaturePreviews
pluginManagement {
repositories {
maven {
url = uri("https://repo.gradle.org/gradle/enterprise-libs-release-candidates")
content {
val rcAndMilestonesPattern = "\\d{1,2}?\\.\\d{1,2}?(\\.\\d{1,2}?)?-((rc-\\d{1,2}?)|(milestone-\\d{1,2}?))"
// GE plugin marker artifact
includeVersionByRegex("com.gradle.enterprise", "com.gradle.enterprise.gradle.plugin", rcAndMilestonesPattern)
// GE plugin jar
includeVersionByRegex("com.gradle", "gradle-enterprise-gradle-plugin", rcAndMilestonesPattern)
}
}
maven {
name = "Gradle public repository"
url = uri("https://repo.gradle.org/gradle/public")
content {
includeModule("org.openmbee.junit", "junit-xml-parser")
}
}
gradlePluginPortal()
}
}
plugins {
id("com.gradle.enterprise").version("3.15.1") // Sync with `build-logic-commons/build-platform/build.gradle.kts`
id("io.github.gradle.gradle-enterprise-conventions-plugin").version("0.7.6")
id("org.gradle.toolchains.foojay-resolver-convention") version("0.7.0")
}
includeBuild("build-logic-commons")
includeBuild("build-logic")
apply(from = "gradle/shared-with-buildSrc/mirrors.settings.gradle.kts")
// If you include a new subproject here, you will need to execute the
// ./gradlew generateSubprojectsInfo
// task to update metadata about the build for CI
unassigned {
subproject("distributions-dependencies") // platform for dependency versions
subproject("core-platform") // platform for Gradle distribution core
}
// Gradle Distributions - for testing and for publishing a full distribution
unassigned {
subproject("distributions-core")
subproject("distributions-basics")
subproject("distributions-native")
subproject("distributions-full")
}
// Gradle implementation projects
unassigned {
subproject("core")
subproject("plugins")
subproject("build-events")
subproject("diagnostics")
subproject("platform-native")
subproject("language-native")
subproject("tooling-native")
subproject("plugin-use")
subproject("plugin-development")
subproject("testing-native")
subproject("test-kit")
subproject("installation-beacon")
subproject("composite-builds")
subproject("core-api")
subproject("build-profile")
subproject("instrumentation-declarations")
}
// Core Runtime Platform
platform("core-runtime") {
subproject("base-annotations")
subproject("base-services")
subproject("bootstrap")
subproject("build-operations")
subproject("build-option")
subproject("cli")
subproject("file-temp")
subproject("files")
subproject("functional")
subproject("instrumentation-agent")
subproject("internal-instrumentation-api")
subproject("internal-instrumentation-processor")
subproject("launcher")
subproject("logging")
subproject("logging-api")
subproject("messaging")
subproject("native")
subproject("process-services")
subproject("worker-services")
subproject("wrapper")
subproject("wrapper-shared")
}
// Core Configuration Platform
platform("core-configuration") {
subproject("api-metadata")
subproject("base-services-groovy")
subproject("configuration-cache")
subproject("file-collections")
subproject("kotlin-dsl")
subproject("kotlin-dsl-provider-plugins")
subproject("kotlin-dsl-tooling-builders")
subproject("kotlin-dsl-tooling-models")
subproject("kotlin-dsl-plugins")
subproject("kotlin-dsl-integ-tests")
subproject("model-core")
subproject("model-groovy")
}
// Core Execution Platform
platform("core-execution") {
subproject("build-cache")
subproject("build-cache-base")
subproject("build-cache-http")
subproject("build-cache-packaging")
subproject("file-watching")
subproject("execution")
subproject("hashing")
subproject("persistent-cache")
subproject("snapshots")
subproject("worker-processes")
subproject("workers")
}
// IDE Platform
platform("ide") {
subproject("base-ide-plugins")
subproject("ide")
subproject("ide-native")
subproject("ide-plugins")
subproject("problems")
subproject("problems-api")
subproject("tooling-api")
subproject("tooling-api-builders")
}
// Software Platform
platform("software") {
subproject("antlr")
subproject("build-init")
subproject("dependency-management")
subproject("plugins-distribution")
subproject("distributions-publishing")
subproject("ivy")
subproject("maven")
subproject("platform-base")
subproject("plugins-version-catalog")
subproject("publish")
subproject("resources")
subproject("resources-http")
subproject("resources-gcs")
subproject("resources-s3")
subproject("resources-sftp")
subproject("reporting")
subproject("security")
subproject("signing")
subproject("testing-base")
subproject("test-suites-base")
subproject("version-control")
}
// JVM Platform
platform("jvm") {
subproject("code-quality")
subproject("distributions-jvm")
subproject("ear")
subproject("jacoco")
subproject("jvm-services")
subproject("language-groovy")
subproject("language-java")
subproject("language-jvm")
subproject("toolchains-jvm")
subproject("java-compiler-plugin")
subproject("java-platform")
subproject("normalization-java")
subproject("platform-jvm")
subproject("plugins-groovy")
subproject("plugins-java")
subproject("plugins-java-base")
subproject("plugins-jvm-test-fixtures")
subproject("plugins-jvm-test-suite")
subproject("plugins-test-report-aggregation")
subproject("scala")
subproject("testing-jvm")
subproject("testing-jvm-infrastructure")
subproject("testing-junit-platform")
subproject("war")
}
// Gradle Enterprise Platform
platform("enterprise") {
subproject("enterprise")
subproject("enterprise-logging")
subproject("enterprise-operations")
subproject("enterprise-plugin-performance")
subproject("enterprise-workers")
}
// Internal utility and verification projects
unassigned {
subproject("docs")
subproject("docs-asciidoctor-extensions-base")
subproject("docs-asciidoctor-extensions")
subproject("samples")
subproject("architecture-test")
subproject("internal-testing")
subproject("internal-integ-testing")
subproject("internal-performance-testing")
subproject("internal-architecture-testing")
subproject("internal-build-reports")
subproject("integ-test")
subproject("distributions-integ-tests")
subproject("soak")
subproject("smoke-test")
subproject("performance")
subproject("precondition-tester")
}
rootProject.name = "gradle"
FeaturePreviews.Feature.values().forEach { feature ->
if (feature.isActive) {
enableFeaturePreview(feature.name)
}
}
fun remoteBuildCacheEnabled(settings: Settings) = settings.buildCache.remote?.isEnabled == true
fun getBuildJavaHome() = System.getProperty("java.home")
gradle.settingsEvaluated {
if ("true" == System.getProperty("org.gradle.ignoreBuildJavaVersionCheck")) {
return@settingsEvaluated
}
if (!JavaVersion.current().isJava11) {
throw GradleException("This build requires JDK 11. It's currently ${getBuildJavaHome()}. You can ignore this check by passing '-Dorg.gradle.ignoreBuildJavaVersionCheck=true'.")
}
}
// region platform include DSL
fun platform(platformName: String, platformConfiguration: PlatformScope.() -> Unit) =
PlatformScope("platforms/$platformName").platformConfiguration()
fun unassigned(platformConfiguration: PlatformScope.() -> Unit) =
PlatformScope("subprojects").platformConfiguration()
class PlatformScope(
private val basePath: String
) {
fun subproject(projectName: String) {
include(projectName)
project(":$projectName").projectDir = file("$basePath/$projectName")
}
}
// endregion