You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Justification:
Maven, Gradle, and sbt all allow users to relocate their dependency caches. The built-in caching currently uses hardcoded locations, requiring affected users to disable it and reproduce setup-java's cache behavior with actions/cache.
Although cache-primary-key can be reused, it is only computed when built-in caching is enabled, which also performs an unnecessary restore against the default paths. A cache-path override preserves setup-java's simple caching experience for a standard build-tool configuration while keeping existing behavior fully backward compatible.
Acceptance criteria:
Supports Maven, Gradle, and sbt.
Supports multiline paths and exclusion patterns accepted by actions/cache.
Preserves existing defaults when omitted.
Uses custom paths for both restore and save.
Includes unit and end-to-end coverage.
Documents when direct actions/cache usage is preferable.
Activity