Skip to content

Commit

Permalink
Ignore unreleased for major updates when bump target
Browse files Browse the repository at this point in the history
Due to how maven versions work there are special qualifiers that are
interpreted "lower" than the release version without a qualifier leading
to unexpected updates.

This adds the "lowest" qualifier (-alpha) so it gets excluded as well.
  • Loading branch information
laeubi committed Aug 13, 2024
1 parent aeb99c7 commit 82bc6a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected void doUpdate() throws IOException, URISyntaxException, ParserConfigur
if (!updateMajorVersion) {
try {
String[] strings = oldVersion.split("\\.");
mavenDependency.setVersion("[," + (Integer.parseInt(strings[0]) + 1) + ")");
mavenDependency.setVersion("[," + (Integer.parseInt(strings[0]) + 1) + "-alpha)");
} catch (RuntimeException e) {
getLog().warn("Can't check for update of " + mavenDependency
+ " because the version format is not parseable: " + e);
Expand Down

0 comments on commit 82bc6a6

Please sign in to comment.