-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gradle] Allow programatically setting base layer cache directory #1238
Comments
Hi @anuraaga , thanks for the suggestion! We'll consider adding this since it does enable better control over caches across multiple machines. However, one thing we do wish to avoid is to enable bad practices like placing full paths in a |
We may wish to also allow changing the application layers cache for users who wish to |
Hi @anuraaga , we released |
Description of the issue: It would be convenient to be able to set the base layer cache directory programatically, for example to set it to
project.getGradle().getGradleUserHomeDir()
to keep it together with other gradle caches if desired.Expected behavior: Currently, it seems to only be possible to either say yes/no to project-level cache, or use the environment variable XDG_CACHE_HOME. It is often difficult to set an environment variable programatically or in a way that allows reproducible builds (e.g. applies to both CI and dev machines).
Environment: gradle-jib-plugin
The text was updated successfully, but these errors were encountered: