Skip to content

Recipe AddDependency doesn't remove version when there is a managed dependency #4313

Answered by timtebeek
rregout asked this question in Q&A
Discussion options

You must be logged in to vote

Hoi @rregout ; Some of our recipes, like Upgrade Maven dependency version, have an option Boolean overrideManagedVersion to take a managed version into account. The Add Maven dependency recipe does not have such option (yet).

Other recipes, like Add Maven parent remove managed dependency versions in child projects. The Add managed Maven dependency recipe does not yet remove explicit dependency versions (that I know).

For this case we could go for either option: have AddDependency respect a managed dependency version, or have AddManagedDependency remove explicit versions from now-manged dependencies (and then execute that last in your rewrite.yml above).

Feel free to create an issue from t…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rregout
Comment options

@timtebeek
Comment options

Answer selected by timtebeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants