-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cache cleanup fails when run with Gradle 8.11 #431
Comments
Is there an ETA on when the fix will be released? |
Within 24hrs. |
edit: was using v3, not the version I thought I was using, the version with the fix - v4 |
Never mind - it appears I was still on v3 tag for whatever reason. |
Signed-off-by: Andre Kurait <[email protected]>
Note that this issue still exists for
Do you plan to fix the issue for |
Thanks for your feedback. Unfortunately there's no easy solution to this problem. A specific Gradle version will not cleanup files from newer versions, so if So in your case of using Gradle 8.11 with I'll raise a separate issue for this breakage with |
Raise #469 for the issue with |
No. I actually already switched to v4 after writing my last message. Since I was mostly writing my comment because, first, I wanted to make you aware that the issue also exists on v3. And second, I wanted to highlight that the design wasn't ideal, and similar scenarios should be avoided in the future. In my opinion, just downloading the latest version of Gradle is a bit like asking for trouble. A better approach might have been to choose the configured version (i.e. the version specified by the wrapper by default), and fallback to 8.9 if the wrapper specifies an earlier version not supported by the feature. |
@JojOatXGME Thanks. Yes we are well aware that the current solution isn't ideal, and the plan is to do exactly as you suggest:
This way, cache cleanup could still start to fail if a build bumps to a newer Gradle version that has an incompatible cleanup API. But it won't start to fail just because a newer Gradle version is released. This issue is already tracked as #436 |
Gradle 8.11 changes the (internal) cache-control API we are dependent on. We need to adapt to this change and update so that we use Gradle >= 8.11 for any cache-cleanup execution.
The text was updated successfully, but these errors were encountered: