File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 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
3535
3636gradleEnterprise {
3737 buildScan {
38- isCaptureTaskInputFiles = true
38+ capture.isTaskInputFiles = true
3939 isUploadInBackground = ! isCiServer
4040
41- fun accessKeysAreMissingOrBlank () = System .getenv( " GRADLE_ENTERPRISE_ACCESS_KEY " ).isNullOrBlank ()
41+ publishAlways ()
4242
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) {
4645 server = gradleEnterpriseServer
47- publishAlways()
4846 this as BuildScanExtensionWithHiddenFeatures
4947 publishIfAuthenticated()
5048 }
5149
52- if (isCiServer) {
53- publishAlways()
54- termsOfServiceAgree = " yes"
55- }
56-
5750 obfuscation {
5851 if (isCiServer) {
5952 username { " github" }
You can’t perform that action at this time.
0 commit comments