Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Avoid including platform BOM twice in the Gradle plugin #11255

Merged
merged 3 commits into from
Aug 7, 2020

Conversation

gastaldi
Copy link
Contributor

@gastaldi gastaldi commented Aug 6, 2020

Fixes #11251

Add test

@boring-cyborg boring-cyborg bot added area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle area/platform Issues related to definition and interaction with Quarkus Platform labels Aug 6, 2020
@gastaldi gastaldi requested review from ia3andy and aloubyansky August 6, 2020 13:26
Copy link
Contributor

@ia3andy ia3andy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gastaldi gastaldi added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Aug 6, 2020
@gastaldi gastaldi added this to the 1.8.0 - master milestone Aug 6, 2020
@gsmet
Copy link
Member

gsmet commented Aug 6, 2020

I would like to have @aloubyansky 's blessing on this one so it will be merged for 1.7.1.Final.

// Check if BOM is not included already
String resolvedPlatform = String
.format("%s:%s", getProperty(model, "quarkusPlatformGroupId"),
getProperty(model, "quarkusPlatformArtifactId"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better but works on the assumption that these properties are used. In general there could be any property or direct coordinates.

@aloubyansky
Copy link
Member

IMO, it's ok as a quick fix.

@gastaldi gastaldi merged commit 34d4129 into quarkusio:master Aug 7, 2020
@gastaldi gastaldi deleted the add_extension branch August 7, 2020 01:18
@gsmet gsmet modified the milestones: 1.8.0 - master, 1.7.0.Final Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/gradle Gradle area/platform Issues related to definition and interaction with Quarkus Platform triage/waiting-for-ci Ready to merge when CI successfully finishes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gradle addExtension will add BOM dependency even if platform is already in dependencies list
4 participants