Skip to content

Commit 7398c6c

Browse files
committed
Fix upgrade detection when number of numeric components changes
Fixes gh-41471
1 parent f6cbbe7 commit 7398c6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/version/ArtifactVersionDependencyVersion.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ private boolean isSameMinor(ArtifactVersionDependencyVersion other) {
8181

8282
@Override
8383
public boolean isUpgrade(DependencyVersion candidate, boolean movingToSnapshots) {
84+
if (candidate instanceof MultipleComponentsDependencyVersion) {
85+
return super.isUpgrade(candidate, movingToSnapshots);
86+
}
8487
if (!(candidate instanceof ArtifactVersionDependencyVersion)) {
8588
return false;
8689
}

0 commit comments

Comments
 (0)