Skip to content

Commit 5ec10c4

Browse files
committed
Make publish of Gradle build scan explicit
Only publish Gradle build scan when '--scan' option is specified.
1 parent bdc36a6 commit 5ec10c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

settings.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ rootProject.children.findAll { !it.name.startsWith('sample-') }
4141
settings.gradle.projectsLoaded {
4242
develocity {
4343
buildScan {
44-
publishing.onlyIf { !it.buildResult.failures.empty }
44+
// only publish build scan if explicitly requested w/ --scan
45+
publishing.onlyIf { false }
4546
termsOfUseUrl = 'https://gradle.com/terms-of-service'
4647
termsOfUseAgree = 'yes'
4748
}

0 commit comments

Comments
 (0)