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

ChangeDependencyGroupIdAndArtifactId - fixed issue described by managedToUnmanagedExternalizedDepMgmt test… #3998

Merged
merged 2 commits into from
Feb 14, 2024

Conversation

nmck257
Copy link
Collaborator

@nmck257 nmck257 commented Feb 13, 2024

…; previously, the changed dep would erroneously have no version (and one or more "No version provided" markers) after recipe execution

What's changed?

What's your motivation?

The Spring Cloud 2022.0.x upgrade recipe is currently susceptible to the defect fixed by this PR (hence the dep values used in the new test cases)
https://github.com/openrewrite/rewrite-spring/blob/main/src/main/resources/META-INF/rewrite/spring-cloud-2022.yml

Anything in particular you'd like reviewers to focus on?

Anyone you would like to review specifically?

@timtebeek

Have you considered any alternatives or workarounds?

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

…; previously, the changed dep would erroneously have no version (and one or more "No version provided" markers) after recipe execution
@nmck257 nmck257 marked this pull request as draft February 13, 2024 19:43
@nmck257 nmck257 self-assigned this Feb 13, 2024
…ChangeManagedDependencyGroupIdAndArtifactId making a change, to fix test failures with `multipleRetainVersions` on `UpgradeDependencyVersionTest` and `ChangeParentPomTest`
@nmck257 nmck257 marked this pull request as ready for review February 13, 2024 20:29
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix @nmck257 ; I like how it also simplifies the logic here.

@timtebeek timtebeek merged commit 194c106 into main Feb 14, 2024
1 check passed
@timtebeek timtebeek deleted the bugfix/cdgiaai branch February 14, 2024 09:43
@timtebeek timtebeek added the bug Something isn't working label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants