Skip to content

Commit ebabffb

Browse files
jamesarichclaude
andauthored
chore(build): enable the configuration cache (#38)
* chore(build): enable the configuration cache Adds org.gradle.configuration-cache and .parallel. The build already ran with caching and parallel execution but never cached its configuration phase, so every invocation re-configured from scratch. Deliberately no org.gradle.isolated-projects. The sweep that prompted this listed it as the cheap win alongside the configuration cache, but there is a single :plugin module here — per-project configuration isolation has nothing to isolate. Enabling it would be noise, so gradle.properties says why. (The plugin's own output is already isolated-projects-safe for consumers; that was the earlier BuildService refactor and is a separate concern from this build's own configuration.) Verified with ./gradlew build. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * docs(build): correct the configuration-cache lifecycle comment The configuration cache has been stable since Gradle 8.1, not 9; it is the .parallel flag that is still incubating in 9.7. Review caught the comment claiming otherwise. Comment-only change. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent 8754933 commit ebabffb

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

gradle.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
22
org.gradle.parallel=true
33
org.gradle.caching=true
4+
5+
# Configuration cache (stable since Gradle 8.1; .parallel is still incubating in 9.7).
6+
# No org.gradle.isolated-projects: the build is a
7+
# single :plugin module, so there is nothing for per-project isolation to separate. (The plugin's
8+
# own output is already isolated-projects-safe for consumers — see the BuildService refactor.)
9+
org.gradle.configuration-cache=true
10+
org.gradle.configuration-cache.parallel=true
411
version=0.1.7

0 commit comments

Comments
 (0)