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

display-parent-updates should support allowMajorUpdates, allowMinorUpdates and related parameters #1016

Closed
cachescrubber opened this issue Oct 23, 2023 · 2 comments · Fixed by #1017
Milestone

Comments

@cachescrubber
Copy link
Contributor

Since #966 (2.16.0) most display-*-updates and update-* goals consistently support a set of common parameters to narrow the scope of used dependencies (allowMajorUpdates, allowMinorUpdates, allowIncrementalUpdates, ...) However, display-parent-updates does not.

If you agree I'm happy to contribute a PR to make sure display-parent-updates accepts the same parameters as update-parent.

@slawekjaranowski
Copy link
Member

PR are always welcome 😄

Please pay attention that we have:

  • versions:update-parent
  • versions:display-parent-updates
  • versions:parent-updates-report

Agree available options should be similar.

@cachescrubber
Copy link
Contributor Author

Hi @slawekjaranowski , please have a look at #1017

From the *-report goals, none is currently supporting the allMajor/Minor parameter.

@slawekjaranowski slawekjaranowski added this to the next-release milestone Nov 13, 2023
olamy pushed a commit that referenced this issue Nov 16, 2023
* Resolves #1016 - Align update-parent and display-parent-update

* Introduce DisplayParentUpdatesMojoOutputTest

* use SegmentUtils.determineUnchangedSegment

* Align DisplayParentUpdatesMojoTest and UpdateParentMojoTest

* Apply formatting rules

* update javadoc since annotation to 2.17.0 for newly introduced properties

* Align variable name between DisplayParentUpdatesMojo and UpdateParentMojo

* Align skipResolution && isBlank(parentVersion)

* Use Optional in favor of ternary operator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants