-
Notifications
You must be signed in to change notification settings - Fork 71
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
Allow disabling disableCacheCleanup
#286
Comments
We could add a flag, but the default will definitely be disable that deletion, so you would have to enable that flag in every project. In our scenarios, cache deletion is dumb and would cause massive confusion, so it will always be our default. |
Could you not just pick up |
We can't risk a user not having that, getting to a competition, and having their caches deleted and not being able to deploy code. If that were to happen to even 1 team, we will have failed because we didn't do everything we could to solve the problem. The default in GradleRIO will be to automatically disable cache deletion, but we can add a project setting to disable that auto set behavior. |
We were very vocally against gradle having that behavior, and still are. Not all users always have internet, and a build system should easily support that behavior. So for GradleRIO, our default will be to disable the cache deletion. |
I feel the same way, and I don't wish to change that. Perhaps I missed that in the wording, but I wish to have a property that I must set in my user-wide properties (a la
I think this is fairly simple, and in-line with what you want. |
Ah ok. Yeah I'd be ok with that. |
Fixes wpilibsuite#286 The displays a large warning when the property is set, with no way to disable the message. We really do not want teams to have that property enabled.
@kenzierocks #287 does it. You'll get a 4 line warning by having that property set, but I'm not going to add a way to disable that warning. Its just too risky if someone accidentally sets that. |
Makes sense. Thank you! |
* Add way to disable the force no cache deletion behavior Fixes #286 The displays a large warning when the property is set, with no way to disable the message. We really do not want teams to have that property enabled. * Remove setting examples
I prefer to have Gradle clean up my caches automatically, but it seems that GradleRIO overwrites my user's properties to disable this. Can this behaviour be put behind a flag of some sort so I can avoid having this plugin overwrite my preferred configuration? I would like to accept the risk associated with it, mostly because I believe that Gradle won't delete recently used dependencies and I'll be running this every day.
The text was updated successfully, but these errors were encountered: