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

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

commit ed8fa346349c8f851cb321f79d7fbc606cff3e51
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 811b0ed7b77..5fe41f18935 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