Skip to content

Commit

Permalink
Only publish build scans automatically on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed May 17, 2024
1 parent e1b8915 commit cdb62a3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ dependencyResolutionManagement {
repositories.mavenCentral()
}

if (the<BuildParametersExtension>().ci) {
gradleEnterprise {
buildScan {
publishAlways()
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
develocity {
buildScan {
if (buildParameters.ci) {
termsOfUseUrl = "https://gradle.com/help/legal-terms-of-use"
termsOfUseAgree = "yes"
} else {
publishing.onlyIf { false }
}
}
}

0 comments on commit cdb62a3

Please sign in to comment.