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 0536a39cc58 build: allow org.gradle.caching to enable local build
cache on CI
0536a39cc58 is described below
commit 0536a39cc588c09d98290dabab31510c6fab2864
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.
---
gradle/develocity.gradle | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gradle/develocity.gradle b/gradle/develocity.gradle
index d744f3d8b5e..db2e297753f 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) {