File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
plugins {
19
- id " com.gradle.enterprise" version " 3.10.2"
19
+ id ' com.gradle.enterprise' version ' 3.13.2'
20
+ id ' com.gradle.common-custom-user-data-gradle-plugin' version ' 1.10'
20
21
}
21
22
23
+ def isGithubActions = System . getenv(' GITHUB_ACTIONS' ) != null
24
+ def isJenkins = System . getenv(' JENKINS_URL' ) != null
25
+ def isCI = isGithubActions || isJenkins
26
+
22
27
gradleEnterprise {
28
+ server = " https://ge.apache.org"
23
29
buildScan {
24
- termsOfServiceUrl = ' https://gradle.com/terms-of-service'
25
- termsOfServiceAgree = ' yes'
26
- publishAlwaysIf(System . getenv(' CI' ) != null )
30
+ capture { taskInputFiles = true }
31
+ uploadInBackground = ! isCI
32
+ publishAlways()
33
+ publishIfAuthenticated()
34
+ obfuscation {
35
+ // This obfuscates the IP addresses of the build machine in the build scan.
36
+ // Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
37
+ ipAddresses { addresses -> addresses. collect { address -> " 0.0.0.0" } }
38
+ }
39
+ }
40
+ }
41
+
42
+ buildCache {
43
+ local {
44
+ enabled = ! isCI
45
+ }
46
+
47
+ remote(gradleEnterprise. buildCache) {
48
+ enabled = false
27
49
}
28
50
}
29
51
You can’t perform that action at this time.
0 commit comments