setup-java/__tests__/cache
Bruno Borges d68f62d10c Add cache-dependency-path e2e coverage for maven and sbt
Previously only gradle exercised the cache-dependency-path input. Mirror
the gradle save/restore(hit)/restore(miss) pattern for maven and sbt:

- maven1-save/maven1-restore/maven2-restore
- sbt1-save/sbt1-restore/sbt2-restore

Each save+restore pair uses the same cache-dependency-path so the restore
is a hit, while the second restore points at a new maven2/sbt2 fixture
whose different dependencies produce a different hash, so the cache is a
miss (directory not created). New fixtures added under __tests__/cache.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 635b89fa-5c35-49e1-a257-dc9001ebb8db
2026-07-15 10:15:06 -04:00
..
gradle1 feat: implement cache-dependency-path option to control caching dependency (#499) 2023-11-22 16:43:14 +01:00
gradle2 feat: implement cache-dependency-path option to control caching dependency (#499) 2023-11-22 16:43:14 +01:00
maven Introduce the dependency caching for Maven and Gradle (#193) 2021-08-19 20:19:35 +03:00
maven2 Add cache-dependency-path e2e coverage for maven and sbt 2026-07-15 10:15:06 -04:00
sbt Add SBT in cache managers. (#302) 2022-04-20 16:26:27 +02:00
sbt2 Add cache-dependency-path e2e coverage for maven and sbt 2026-07-15 10:15:06 -04:00