Skip to content

Commit

Permalink
Also support Universe BOM
Browse files Browse the repository at this point in the history
Old projects were created with the universe BOM, we need to handle
updates for them too.
Also be a bit stricter about the groupId.

(cherry picked from commit 39795b6)
  • Loading branch information
gsmet committed Aug 2, 2023
1 parent 1ab8bea commit 7a94383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ public QuarkusCommandOutcome execute(QuarkusCommandInvocation invocation) throws

private static ArtifactCoords getProjectQuarkusPlatformBOM(ProjectState currentState) {
for (ArtifactCoords c : currentState.getPlatformBoms()) {
if (c.getArtifactId().equals(ToolsConstants.DEFAULT_PLATFORM_BOM_ARTIFACT_ID)) {
if (c.getArtifactId().equals(ToolsConstants.DEFAULT_PLATFORM_BOM_ARTIFACT_ID)
|| c.getArtifactId().equals(ToolsConstants.UNIVERSE_PLATFORM_BOM_ARTIFACT_ID)) {
return c;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public interface ToolsConstants {

String DEFAULT_PLATFORM_BOM_GROUP_ID = IO_QUARKUS + ".platform";
String DEFAULT_PLATFORM_BOM_ARTIFACT_ID = "quarkus-bom";
String UNIVERSE_PLATFORM_BOM_ARTIFACT_ID = "quarkus-universe-bom";

String PROP_QUARKUS_CORE_VERSION = "quarkus-core-version";

Expand Down

0 comments on commit 7a94383

Please sign in to comment.