Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

#454: Introducing "infinity-like" range calculus for dependency range computation #733

Merged

Conversation

andrzejj0
Copy link
Contributor

@andrzejj0 andrzejj0 commented Oct 2, 2022

Instead of using the next version for range calculation when considering version upgrades, I've devised a sort of a bounded artifact version where we use the concept of "infinity" on a given segment position to match all possible upper versions on the position, but nothing from the more major segment. So, 2.0.0-beta or similar won't be matched anymore when considering minor updates of the 1.x.x branch.

Tests added as unit tests; in particular, two for testing the case explained in #454 in DisplayDependencyUpdatesMojoTest

Some minor refactoring and typo corrections.

@andrzejj0
Copy link
Contributor Author

@slawekjaranowski please review

@andrzejj0 andrzejj0 force-pushed the issue-454-allow-major-updates branch 2 times, most recently from 45615de to 6d89989 Compare October 3, 2022 04:15
@andrzejj0 andrzejj0 changed the title #454: Introducing "infinity-like" calculus for dependency range computation #454: Introducing "infinity-like" range calculus for dependency range computation Oct 3, 2022
@andrzejj0 andrzejj0 force-pushed the issue-454-allow-major-updates branch from 6d89989 to 3115c68 Compare October 3, 2022 17:18
@andrzejj0
Copy link
Contributor Author

Changes applied. Please re-review :)

@slawekjaranowski slawekjaranowski added this to the 2.13.0 milestone Oct 4, 2022
@slawekjaranowski slawekjaranowski linked an issue Oct 4, 2022 that may be closed by this pull request
@slawekjaranowski slawekjaranowski merged commit f7c728a into mojohaus:master Oct 4, 2022
@andrzejj0 andrzejj0 deleted the issue-454-allow-major-updates branch October 4, 2022 18:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected behavior of -DallowMajorReleases=false
2 participants