-
Notifications
You must be signed in to change notification settings - Fork 349
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
Added new recipe ChangeDependencyVersionValue #4366
base: main
Are you sure you want to change the base?
Added new recipe ChangeDependencyVersionValue #4366
Conversation
…upIdAndArtifactId and ChangeManagedDependencyGroupIdAndArtifactId
…DependencyGroupIdAndArtifactId
…into feature/ChangePropertyVersions
…ue to rename the old property name.
rewrite-maven/src/main/java/org/openrewrite/maven/ChangeDependencyVersionValue.java
Show resolved
Hide resolved
rewrite-maven/src/main/java/org/openrewrite/maven/ChangeDependencyVersionValue.java
Show resolved
Hide resolved
rewrite-maven/src/test/java/org/openrewrite/maven/ChangeDependencyVersionValueTest.java
Show resolved
Hide resolved
rewrite-maven/src/test/java/org/openrewrite/maven/ChangeDependencyVersionValueTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Thanks for splitting off these changes! I do see some overlap in the files changed and in Since we squash merge; would it be possible to minimize the changes here such that we can only review what's related to the new recipe? Or did I misunderstand the change set seen here? |
Thanks for the feedback. I only changed the code related to the new implementation of this recipe. I simplified the other recipes so there is no code duplication and I just moved the version change part to this recipe. I did not change anything else regarding this topic. That being said, in case we are not on the same page, every change set from the last PR #4330 is also included in this one, so you could just close the other PR #4330. |
Ah that explains it then; I would have thought both PRs would separately be reviewed and merged, but we can also close #4330 then indeed. |
Yes, that would probably be the best. |
Recipe ChangeDependencyVersionValue
What's changed?
As discussed in another PR #4330 , I have now moved the change version part to a new recipe.
Nothing really changed from last PR, except the new recipe can also be called directly with new options.
The first new one is versionLocation:
DEPENDENCY
,MANAGED_DEPENDENCY
orPLUGIN_DEPENDENCY
. It also doesn't matter if they are in a profile or not.The second new option is newPropertyVersionValue:
Example
new Recipe ChangeDependencyVersionValue:
Before:
After: