-
Notifications
You must be signed in to change notification settings - Fork 127
/
settings.gradle.kts
44 lines (37 loc) · 1.25 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
plugins {
id("com.gradle.develocity") version "3.19"
id("com.gradle.common-custom-user-data-gradle-plugin") version "2.0.2"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
}
includeBuild("build-logic")
include("acceptance-tests")
include("configuration-maven-extension")
rootProject.name = "gradle-plugin"
val gradleExt = (gradle as ExtensionAware).extra
val ciJenkinsBuild by gradleExt { System.getenv("JENKINS_URL") != null }
val ciTeamCityBuild by gradleExt { System.getenv("TEAMCITY_VERSION") != null }
val isCi by gradleExt { ciJenkinsBuild || ciTeamCityBuild }
develocity {
projectId = "jenkinsci-gradle-plugin"
buildScan {
uploadInBackground = !isCi
termsOfUseUrl = "https://gradle.com/terms-of-service"
termsOfUseAgree = "yes"
obfuscation {
ipAddresses { addresses -> addresses.map { _ -> "0.0.0.0" } }
}
}
}
buildCache {
local {
isEnabled = true
}
if (ciTeamCityBuild) {
remote(develocity.buildCache) {
isEnabled = true
val accessKey = System.getenv("GRADLE_ENTERPRISE_ACCESS_KEY")
isPush = !accessKey.isNullOrEmpty()
server = System.getenv("GRADLE_CACHE_REMOTE_URL")
}
}
}