RemoveRedundantDependencyVersions to check for except even in dependencyManagement #5894
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's changed?
Added check for the GAV match provided in except parameter even for the dependencies in dependencyManagement.
We have requirement to exclude some set of dependencies from getting removed even if it has the lower version. But though the GAVs to be excluded passed in the except parameter, still those dependencies are getting removed if it's under the dependencyManagement.
This change is done to exclude those GAVs in dependencyManagement if it's provided in the except parameter.
What's your motivation?
This is created to address the problem mentioned in this enhance request
Anything in particular you'd like reviewers to focus on?
Reviews can check for additional check on the exception that can come in dependencyManagement.
Have you considered any alternatives or workarounds?
No.
Checklist