File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,8 @@ val develocityServer = "https://develocity.opentelemetry.io"
5252val isCI = System .getenv(" CI" ) != null
5353val develocityAccessKey = System .getenv(" DEVELOCITY_ACCESS_KEY" ) ? : " "
5454
55- // if develocity access key is not given and we are in CI, then we publish to scans.gradle.com
56- val useScansGradleCom = isCI && develocityAccessKey.isEmpty()
57-
5855develocity {
59- if (useScansGradleCom ) {
56+ if (develocityAccessKey.isEmpty() ) {
6057 buildScan {
6158 termsOfUseUrl = " https://gradle.com/help/legal-terms-of-use"
6259 termsOfUseAgree = " yes"
@@ -93,7 +90,7 @@ develocity {
9390 }
9491}
9592
96- if (! useScansGradleCom ) {
93+ if (develocityAccessKey.isNotEmpty() ) {
9794 buildCache {
9895 remote(develocity.buildCache) {
9996 isPush = isCI && develocityAccessKey.isNotEmpty()
You can’t perform that action at this time.
0 commit comments