Add ~/.gradle/jdks to cache #245
Copy link
Copy link
Closed
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
Description
Description:
Convenience: Be able to cache JDKs for projects that uses the built in toolchain support in Gradle.
Having the action configure cache for ~/.gradle/jdks (perhaps under a different cache-key?) in addition to .gradle/caches, .gradle/wrapper and gradle-wrapper.properties would avoid the unnecessary step of:
- name: Setup gradle JDK cache
uses: actions/cache@v2
with:
path: ~/.gradle/jdks
key: gradle-${{ runner.os }}-jdks
Justification:
Many of us have complicated multi-module builds targeting different JDK versions. For this Gradle supports toolchains that manages and downloads JDKs on demand if the required JDK versions are not found on the path. Using cache for JDKs as well is important to reduce built times. Also note that relying on matrix jobs isn't always an option and also not reproductible when doing local development builds.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature requestNew feature or request to improve the current logicNew feature or request to improve the current logic
Activity
dmitry-shibanov commentedon Dec 23, 2021
Hello @alsutton. Sorry for the late response. We'll investigate the issue.
dmitry-shibanov commentedon May 24, 2022
Hello @devminded. We would not like to implement such kind of logic, because the initial caching logic for setup-java should cover the most often use cases. If you want to use some more complex caching logic we would recommend you to use actions/cache. It's relevant to setup-node ADR.
For now I'm closing the issue.