-
Notifications
You must be signed in to change notification settings - Fork 42
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
Honor custom distributionPath for caching downloaded wrapper distributions #29
Comments
Thanks for the report: you're assessment is correct. Currently the You can configure the action to save/restore more directories inside the Gradle User Home directory, but there's no way to tell the action to save/restore directories outside of the Gradle User Home. As a workaround:
|
Thanks for the info. Use case is separating our custom Gradle distributions from standard distributions to aid in install / maintenance. e.g. ...within the GRADLE_USER_HOME distributionBase. Is there specific cache logic for |
Yes, the Gradle wrapper distributions are saved and restored independently of the rest of the Gradle User Home, with the aim to increase sharing between different projects/builds using the same Gradle version. Another option you have to workaround this limitation is to fork the action and add your custom distribution base here: https://github.com/gradle/gradle-build-action/blob/main/src/cache-extract-entries.ts#LL341C32-L341C32. Note that you'll need to run |
The
distributionPath
property ingradle/wrapper/gradle-wrapper.properties
is not used when caching distributions. It appears that caching is only supported for the defaultwrapper/dists
location.The text was updated successfully, but these errors were encountered: