-
Notifications
You must be signed in to change notification settings - Fork 267
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
Implementing #684: allow providing ruleSet in POM #686
Implementing #684: allow providing ruleSet in POM #686
Conversation
73c09da
to
3731a73
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have two methods loadRuleSet
in DefaultVersionsHelper
one is called from constructor one from builder
there is logic for checking ignoredVersions
and
there is logic for checking ignore Versions
and creating / coping ruleSet depends on it ... it looks a little complicated
Maybe simply in order:
- if ruleSet exist in plugin configuration use it
- if rulesUri exist use it
- always add ignoredVersions to ruleSet
src/main/java/org/codehaus/mojo/versions/AbstractVersionsUpdaterMojo.java
Show resolved
Hide resolved
3731a73
to
4e2e521
Compare
Remarks applied. Please re-review. :) |
src/main/java/org/codehaus/mojo/versions/api/DefaultVersionsHelper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/codehaus/mojo/versions/api/DefaultVersionsHelper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/codehaus/mojo/versions/api/DefaultVersionsHelper.java
Outdated
Show resolved
Hide resolved
4e2e521
to
3127ac3
Compare
Again, applied all comments. Please review again. |
@ajarmoniuk Thanks - good job |
Providing the possibility to provide the ruleSet via POM. As an extra which comes at a low cost, it will also be possible to provide just the global ignored versions via the
maven.version.ignore
property (property name chosen to be in line with similar properties for this plugin).Added some unit tests where it didn't come at a great runtime cost, in other cases created integration tests to test as many mojos as possible where the change occurs.
On top of that, some very minor refactoring and cleanup.
As usual, kindly please review @slawekjaranowski