Skip to content

ci: let only the JDK 21 job write the Maven cache - #574

Merged
tcheeric merged 1 commit into
developfrom
ci/maven-cache
Nov 27, 2026
Merged

tcheeric merged 1 commit into
developfrom
ci/maven-cache

Conversation

@tcheeric

Copy link
Copy Markdown
Owner

The JDK 17 job (mvn -N validate) and the JDK 21 build share one setup-java cache key. JDK 17 finishes first and saves a ~0 MB cache, so every later run gets a cache hit on that empty entry, skips saving, and downloads every dependency from Maven Central. That's why build (21) kept failing with HTTP 429 on #571 and #572.

Only the JDK 21 job now uses the cache.

Note: the existing ~0 MB caches stay under the same key until they're evicted. Delete them after merging so the next develop run saves a full one.

Type of change

  • ci

Both matrix jobs share one setup-java cache key. The JDK 17 job only runs
mvn -N validate, finished first and saved a ~0 MB cache. Every later run
hit that empty cache, skipped saving, and fetched all dependencies from
Maven Central, which returned HTTP 429.
@tcheeric
tcheeric merged commit 88f4c1d into develop Nov 27, 2026
5 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.

1 participant