Skip to content

Commit af85ee4

Browse files
authored
Fix Gradle Develocity setup for dev environments (petertrr#129)
1 parent ea81e21 commit af85ee4

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

Diff for: settings.gradle.kts

+11-5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ pluginManagement {
66
}
77

88
plugins {
9-
id("com.gradle.develocity") version("3.17.6")
10-
id("org.ajoberstar.reckon.settings") version("0.18.2")
9+
id("com.gradle.develocity") version ("3.19")
10+
id("org.ajoberstar.reckon.settings") version ("0.18.2")
1111
}
1212

1313
rootProject.name = "kotlin-multiplatform-diff"
@@ -25,11 +25,17 @@ extensions.configure<org.ajoberstar.reckon.gradle.ReckonExtension> {
2525
stageFromProp("alpha", "rc", "final") // version string will be based on last commit; when checking out a tag, that
2626
}
2727

28-
if (System.getenv("CI") != null) {
29-
develocity {
30-
buildScan {
28+
develocity {
29+
buildScan {
30+
val isCI = System.getenv("CI").toBoolean()
31+
32+
if (isCI) {
3133
termsOfUseUrl = "https://gradle.com/terms-of-service"
3234
termsOfUseAgree = "yes"
3335
}
36+
37+
publishing {
38+
onlyIf { isCI }
39+
}
3440
}
3541
}

0 commit comments

Comments
 (0)