Skip to content
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

Use Gradle 8.8 features for Gradle Home cleanup #272

Merged
merged 4 commits into from
Jun 28, 2024
Merged

Conversation

bigdaz
Copy link
Member

@bigdaz bigdaz commented Jun 28, 2024

Fixes #33
Fixes #24
Fixes #46
Fixes #169

To cleanup Gradle User Home, a Gradle build must be executed.
Newer Gradle versions are able to cleanup the home directories of older versions,
but not vice-versa.

With this change, the latest version of Gradle is automatically provisioned
in order to run Gradle User Home cleanup. This ensures a consistent version of
Gradle is used for cleanup, and fixes #33 where Gradle is not pre-installed on
a custom runner.
Gradle 8.8 introduces new features that allow us to avoid using
timestamp manipulation to force the cleanup of the Gradle User Home directory.

This solution is simpler and more robust, but relies on Gradle 8.8+ always being
used for the cache cleanup operation.

Fixes #24
@bigdaz bigdaz merged commit dad038d into main Jun 28, 2024
120 checks passed
@bigdaz bigdaz deleted the dd/gradle88-cleanup branch June 28, 2024 19:46
@bigdaz bigdaz added this to the 3.5.0 milestone Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment