Skip to content

Commit

Permalink
Migrate com.gradle.enterprise to com.gradle.develocity
Browse files Browse the repository at this point in the history
  • Loading branch information
britter committed May 21, 2024
1 parent 7756f32 commit 66058b9
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("com.gradle.enterprise") version "3.17.4"
id("com.gradle.develocity") version "3.17.4"
}

dependencyResolutionManagement {
Expand All @@ -8,13 +8,14 @@ dependencyResolutionManagement {

rootProject.name = "java-module-testing"

gradleEnterprise {
val runsOnCI = providers.environmentVariable("CI").getOrElse("false").toBoolean()
if (runsOnCI) {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
develocity {
buildScan {
val isCi = providers.environmentVariable("CI").getOrElse("false").toBoolean()
if (isCi) {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
} else {
publishing.onlyIf { false }
}
}
}

0 comments on commit 66058b9

Please sign in to comment.