Skip to content

fix: don't use dependency version ranges - #635

Merged
childish-sambino merged 1 commit into
masterfrom
pom-version-range
Jul 2, 2020
Merged

fix: don't use dependency version ranges#635
childish-sambino merged 1 commit into
masterfrom
pom-version-range

Conversation

@childish-sambino

Copy link
Copy Markdown
Contributor

Fixes #634

Using a version range like this results in maven attempting to get SNAPSHOT information for the dependency since it's possible a SNAPSHOT release would match the version range. It's not a big deal, but there are better approaches. The idea was we want to pick up the latest 4.X version of java-http-client, but even a version range does not guarantee this. It only guarantees that a 4.X version will be used (not necessarily the latest release). What we really want is the latest non-snapshot, minor version release for all dependencies, not just java-http-client. Also note that Maven version ranges perform basic string comparison so even it they were capable of getting the latest release for a dependency, it might not actually be the latest release if proper semver is used.

Using a version range like this results in maven attempting to get SNAPSHOT information for the dependency since it's possible a SNAPSHOT release would match the version range. It's not a big deal, but there are better approaches. The idea was we want to pick up the latest 4.X version of java-http-client, but even a version range does not guarantee this. It only guarantees that a 4.X version will be used (not necessarily the latest release). What we really want is the latest non-snapshot, minor version release for all dependencies, not just java-http-client. Also note that Maven version ranges perform basic string comparison so even it they were capable of getting the latest release for a dependency, it might not actually be the latest release if proper semver is used.
@thinkingserious thinkingserious added the status: code review request requesting a community code review or review from Twilio label Jun 30, 2020
@childish-sambino
childish-sambino merged commit 3239e86 into master Jul 2, 2020
@childish-sambino
childish-sambino deleted the pom-version-range branch July 2, 2020 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: code review request requesting a community code review or review from Twilio

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FIX dependency versions in your pom.xml

2 participants