Skip to content

Commit 36414ef

Browse files
committed
Use public build scans when Develocity access key is not set
1 parent bb926c0 commit 36414ef

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

settings.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,10 @@ dependencyResolutionManagement {
4949
}
5050

5151
val develocityServer = "https://develocity.opentelemetry.io"
52-
val isCI = System.getenv("CI") != null
5352
val develocityAccessKey = System.getenv("DEVELOCITY_ACCESS_KEY") ?: ""
5453

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-
5854
develocity {
59-
if (useScansGradleCom) {
55+
if (develocityAccessKey.isEmpty()) {
6056
buildScan {
6157
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
6258
termsOfUseAgree = "yes"

0 commit comments

Comments
 (0)