Skip to content

Commit

Permalink
build.gradle: Update buildScan publishing API
Browse files Browse the repository at this point in the history
Only publish build scans when using CI using the new Develocity API
(publishing.onlyIf())
  • Loading branch information
msgilligan committed Jan 19, 2025
1 parent 86fdf30 commit cde620b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ gradle.rootProject {

develocity {
buildScan {
if (System.getenv('CI')) {
publishAlways()
tag 'CI'
}
publishing.onlyIf { System.getenv("CI") }
termsOfUseUrl = 'https://gradle.com/terms-of-service'
termsOfUseAgree = 'yes'
}
Expand Down

0 comments on commit cde620b

Please sign in to comment.