Skip to content

Commit ff8ed43

Browse files
authored
Merge pull request #801 from gradle/erichaagdev/always-publish-develocity
Build Scan publishing is enforced for the Develocity Gradle plugin
2 parents 7a8c346 + ecb66f8 commit ff8ed43

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

components/scripts/gradle/gradle-init-scripts/configure-build-validation.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
128128
failMissingDevelocityServerURL('https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity')
129129
}
130130

131+
develocity.buildScan.publishing.onlyIf { true }
131132
registerBuildScanActions(develocity.buildScan, rootProject.name)
132133
addBuildScanCustomData(develocity.buildScan, develocity.server.get())
133134
}
@@ -161,6 +162,7 @@ if (GradleVersion.current() < GradleVersion.version('6.0')) {
161162
failMissingDevelocityServerURL('https://docs.gradle.com/develocity/gradle-plugin/current/#connecting_to_develocity')
162163
}
163164

165+
settings.develocity.buildScan.publishing.onlyIf { true }
164166
registerBuildScanActions(settings.develocity.buildScan, settings.rootProject.name)
165167
addBuildScanCustomData(settings.develocity.buildScan, settings.develocity.server.get())
166168
}

release/changes.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
- [FIX] Successful exit code returned when performance characteristics are unknown and `--fail-if-not-fully-cacheable` is used
66
- [FIX] Gradle experiments do not disable background Build Scan publication
77
- [FIX] Common Custom User Data Gradle plugin not injected for Gradle builds
8+
- [FIX] Build Scan publishing is not enforced for the Develocity Gradle plugin

0 commit comments

Comments
 (0)