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 b832dfb46af7ef2b8865103ae2035e19b5211182
Author: David Smiley <[email protected]>
AuthorDate: Sat Jul 4 00:22:29 2026 -0400

    build: allow org.gradle.caching to enable local build cache on CI
    
    buildCache.local.enabled was hardcoded to !isCIBuild, disabling the
    local cache on any CI-detected environment. Some CI runners (e.g.
    crave) persist the Gradle user home across builds and benefit from
    local caching, unlike typical ephemeral CI. Setting
    org.gradle.caching=true now overrides the CI-based default instead
    of requiring a change to CI detection itself.
    
    (cherry picked from commit 0536a39cc588c09d98290dabab31510c6fab2864)
---
 gradle/develocity.gradle | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gradle/develocity.gradle b/gradle/develocity.gradle
index acfeabafa4f..811b0ed7b77 100644
--- a/gradle/develocity.gradle
+++ b/gradle/develocity.gradle
@@ -55,7 +55,9 @@ develocity {
 
 buildCache {
     local {
-        enabled = !isCIBuild
+        enabled =
+            
providers.gradleProperty('org.gradle.caching').map(Boolean::parseBoolean)
+                .getOrElse(!isCIBuild)
     }
 
     remote(develocity.buildCache) {

Reply via email to