This is an automated email from the ASF dual-hosted git repository.

dsmiley pushed a commit to branch branch_10x
in repository https://gitbox.apache.org/repos/asf/solr.git

commit e4154121e97f3129189ccdaf437ae8c703eb2093
Author: David Smiley <[email protected]>
AuthorDate: Fri Aug 7 00:54:33 2026 -0400

    Develocity: publishing opt-in locally
    
    (cherry picked from commit 1aa47efe9767026207e6c623b5d505572daef857)
---
 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"}}
     }

Reply via email to