forked from gradle/gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
197 lines (180 loc) · 5.71 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
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)
}
}
jcenter {
content {
includeModule("org.openmbee.junit", "junit-xml-parser")
includeModule("org.codehaus.groovy.modules", "http-builder-ng-core")
}
}
gradlePluginPortal()
}
}
plugins {
id("com.gradle.enterprise").version("3.13.2") // Sync with `build-logic/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.4.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
include("distributions-dependencies") // platform for dependency versions
include("core-platform") // platform for Gradle distribution core
// Gradle Distributions - for testing and for publishing a full distribution
include("distributions-core")
include("distributions-basics")
include("distributions-publishing")
include("distributions-jvm")
include("distributions-native")
include("distributions-full")
// Gradle implementation projects
include("configuration-cache")
include("functional")
include("api-metadata")
include("base-services")
include("base-services-groovy")
include("worker-services")
include("logging-api")
include("logging")
include("process-services")
include("jvm-services")
include("core")
include("dependency-management")
include("wrapper")
include("wrapper-shared")
include("cli")
include("launcher")
include("bootstrap")
include("messaging")
include("resources")
include("resources-http")
include("resources-gcs")
include("resources-s3")
include("resources-sftp")
include("plugins")
include("scala")
include("ide")
include("ide-native")
include("maven")
include("code-quality")
include("antlr")
include("tooling-api")
include("build-events")
include("tooling-api-builders")
include("signing")
include("ear")
include("native")
include("reporting")
include("diagnostics")
include("publish")
include("ivy")
include("jacoco")
include("build-init")
include("build-option")
include("platform-base")
include("platform-native")
include("platform-jvm")
include("language-jvm")
include("language-java")
include("java-compiler-plugin")
include("language-groovy")
include("language-native")
include("tooling-native")
include("plugin-use")
include("plugin-development")
include("model-core")
include("model-groovy")
include("build-cache-http")
include("testing-base")
include("testing-native")
include("testing-jvm")
include("testing-jvm-infrastructure")
include("testing-junit-platform")
include("test-kit")
include("installation-beacon")
include("composite-builds")
include("workers")
include("persistent-cache")
include("build-cache-base")
include("build-cache")
include("core-api")
include("version-control")
include("file-collections")
include("file-temp")
include("files")
include("hashing")
include("snapshots")
include("file-watching")
include("build-cache-packaging")
include("execution")
include("build-profile")
include("kotlin-dsl")
include("kotlin-dsl-provider-plugins")
include("kotlin-dsl-tooling-models")
include("kotlin-dsl-tooling-builders")
include("worker-processes")
include("base-annotations")
include("security")
include("normalization-java")
include("enterprise")
include("enterprise-operations")
include("enterprise-logging")
include("enterprise-workers")
include("build-operations")
include("problems")
include("instrumentation-agent")
include("instrumentation-declarations")
// Plugin portal projects
include("kotlin-dsl-plugins")
// Internal utility and verification projects
include("internal-instrumentation-api")
include("internal-instrumentation-processor")
include("docs")
include("docs-asciidoctor-extensions-base")
include("docs-asciidoctor-extensions")
include("samples")
include("architecture-test")
include("internal-testing")
include("internal-integ-testing")
include("internal-performance-testing")
include("internal-architecture-testing")
include("internal-build-reports")
include("integ-test")
include("kotlin-dsl-integ-tests")
include("distributions-integ-tests")
include("soak")
include("smoke-test")
include("performance")
include("build-scan-performance")
rootProject.name = "gradle"
for (project in rootProject.children) {
project.projectDir = file("subprojects/${project.name}")
}
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'.")
}
}