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

Add Property Resolution to RemoveRedundantDependencyVersions #4236

Conversation

ryan-hudson
Copy link
Contributor

What's changed?

Added property version resolution for dependencies/plugins using the maven property syntax to define versions and removed the early exit logic for this case.

What's your motivation?

Redundant Dependencies and Plugin versions defined through maven properties should still be removed by this recipe instead of being ignored.

…perty resolution, allowing dependencies/plugins using redundant property versions to correctly be removed.
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.

Nice concise improvement @ryan-hudson , thanks a lot!

@timtebeek timtebeek added the enhancement New feature or request label Jun 7, 2024
@timtebeek timtebeek merged commit 28e7b12 into openrewrite:main Jun 7, 2024
1 check passed
@ryan-hudson ryan-hudson deleted the bugfix/remove-redundant-dependencies-property-version-support branch June 10, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants