This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/main by this push:
new 1aa47efe976 Develocity: publishing opt-in locally
1aa47efe976 is described below
commit 1aa47efe9767026207e6c623b5d505572daef857
Author: David Smiley <[email protected]>
AuthorDate: Fri Aug 7 00:54:33 2026 -0400
Develocity: publishing opt-in locally
---
gradle/develocity.gradle | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gradle/develocity.gradle b/gradle/develocity.gradle
index db2e297753f..272d2f708b9 100644
--- a/gradle/develocity.gradle
+++ b/gradle/develocity.gradle
@@ -27,7 +27,9 @@ develocity {
buildScan {
uploadInBackground = !isCIBuild
- publishing.onlyIf {it.authenticated}
+ // Publish on CI (assume key env var set) or locally when opted-in via
-Pscan
+ def isScanOptIn = providers.gradleProperty('scan').present
+ publishing.onlyIf { (isCIBuild || isScanOptIn) && it.authenticated }
obfuscation {
ipAddresses {addresses -> addresses.collect {address -> "0.0.0.0"}}
}