Skip to content

ci: cache maven wrapper distribution to avoid per-build downloads - #2527

Merged
jfallows merged 1 commit into
developfrom
claude/zilla-maven-wrapper-cache-gb4wjf
Sep 3, 2026
Merged

ci: cache maven wrapper distribution to avoid per-build downloads#2527
jfallows merged 1 commit into
developfrom
claude/zilla-maven-wrapper-cache-gb4wjf

Conversation

@jfallows

@jfallows jfallows commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Description

The Maven wrapper jar and the Maven distribution zip it fetches (apache-maven-3.9.14-bin.zip) land under ~/.m2/wrapper, a sibling directory of ~/.m2/repository. The existing Cache Maven packages step in build.yml only caches ~/.m2/repository, so every build re-downloaded the wrapper jar and the ~10MB Maven distribution zip from Maven Central, even on a full dependency-cache hit.

This adds a dedicated cache step for ~/.m2/wrapper, keyed on hashFiles('**/maven-wrapper.properties') so a wrapper-version bump invalidates only this small cache rather than the larger dependency cache.

Note: release.yml already caches the whole ~/.m2 directory and was unaffected by this gap; this change brings build.yml in line with it.


Generated by Claude Code

The wrapper jar and Maven distribution zip land under ~/.m2/wrapper,
a sibling of ~/.m2/repository -- the existing cache path never
reached it, so every build re-fetched apache-maven-3.9.14-bin.zip
from Maven Central.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011d1LPWiNeTmi5johUb4ntn
@jfallows
jfallows merged commit 48a5ea7 into develop Sep 3, 2026
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants