File tree 1 file changed +4
-11
lines changed
1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -35,25 +35,18 @@ val junitBuildCachePassword: String? by extra
35
35
36
36
gradleEnterprise {
37
37
buildScan {
38
- isCaptureTaskInputFiles = true
38
+ capture.isTaskInputFiles = true
39
39
isUploadInBackground = ! isCiServer
40
40
41
- fun accessKeysAreMissingOrBlank () = System .getenv( " GRADLE_ENTERPRISE_ACCESS_KEY " ).isNullOrBlank ()
41
+ publishAlways ()
42
42
43
- if (gradle.startParameter.isBuildScan || (isCiServer && accessKeysAreMissingOrBlank())) {
44
- termsOfServiceUrl = " https://gradle.com/terms-of-service"
45
- } else {
43
+ // Publish to scans.gradle.com when `--scan` is used explicitly
44
+ if (! gradle.startParameter.isBuildScan) {
46
45
server = gradleEnterpriseServer
47
- publishAlways()
48
46
this as BuildScanExtensionWithHiddenFeatures
49
47
publishIfAuthenticated()
50
48
}
51
49
52
- if (isCiServer) {
53
- publishAlways()
54
- termsOfServiceAgree = " yes"
55
- }
56
-
57
50
obfuscation {
58
51
if (isCiServer) {
59
52
username { " github" }
You can’t perform that action at this time.
0 commit comments