Fix Recipe to remove build cache configuration for Develocity#6465
Fix Recipe to remove build cache configuration for Develocity#6465timtebeek merged 16 commits intoopenrewrite:mainfrom
Conversation
|
Hi Team, |
|
Fixes Issue - #6466 |
|
Added the fix and updated the PR description to explain the fix. I noticed that there is a composite recipe |
…moveDevelocityTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…moveDevelocityTest.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…moveDevelocityConfiguration.java Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
timtebeek
left a comment
There was a problem hiding this comment.
Thanks for the help here @div-bargali ! I've condensed your work a bit by overriding getVisitor and applying some other best practices like ListUtils.filter. Great to see this resolved.
Thanks @timtebeek. Glad I could help in contributing to the project! |
|
All good; after discussing with Shannon we've added a small update to further limit what's removed vs retained. |
Thanks for sharing @timtebeek . It makes sense to restrict removal of |
What's changed?
Added a unit test that fails with the current recipe to remove Develocity Build Cache Configuration.
Edit - Added a boolean flag (optional) removeBuildCache to
RemoveDevelocityConfigurationrecipe. When passed as true, it adds thebuildCacheextension in thesettings.gradle(.kts)file for removal.What's your motivation?
Anything in particular you'd like reviewers to focus on?
Adding a test case that fails with the current implementation. Would like to contribute a fix that would remove the buildCache extension correctly.
Have you considered any alternatives or workarounds?
There are no workarounds.
Checklist