-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Flatten quarkus-bom #15899
Flatten quarkus-bom #15899
Conversation
why would we want it sorted alphabeticvally and not by ordering as that is/can be significant ? will this not affect origins in new platform metadata if we start flattening the boms or is that what you refer to about platform being an exception ? |
I'm curious: can you elaborate on how ordering can be significant on a flattened BOM? |
was about to say it defines the order on the classpath - so one can shadow the other...but I then realize if its used as bom pom then that doesn't happen. |
Simply to make it more human friendly.
Correct. This is platform friendly as well. |
d940609
to
3214b3a
Compare
Are you guys sure that ordering is not important here? I think it is, especially for conflicting transitive versions. Btw, CI failed big time. |
PS: I guess IDEs like Eclipse won't pick up the flattened BOM, right? (when the BOM module is imported as a project) |
Wdym picked up? |
AFAIK, workspace resolution in Eclipse won't be using the flattened BOM from target in modules that depend on it (/import it). It'll probably use the regular unflattened one. |
3214b3a
to
d0fe7ad
Compare
Let's clarify, the flattened bom in the Quarkus repo specifically. Content-wise, It has no changes compared to its original version. |
The ordering in the BOM or
I'll investigate that. |
Sorry, not much time ATM. I'll have to take a look at the resulting BOM before making any further assumptions... |
I think the main problem in CI is this:
|
A BOM is nothing more than a |
|
Apparently,
is flattened to
And I am not sure how to fix that properly, atm. |
Ok, I figured out where to get the proper |
According to https://maven.apache.org/guides/mini/guide-attached-tests.html the |
I'm tempted to simply duplicate |
That appears to work. I am going with that. |
d0fe7ad
to
f2205a1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked a few scenarios I had in mind (with a sample project) and my concerns have now vanished!
I'm not sure whether I had some old Maven (pre-3.6 or even pre-3.5) behavior in mind or it was simply a bug in my matrix. 😉
TL;DR: LGTM
f2205a1
to
83d7925
Compare
pom.xml
Outdated
<id>quarkus</id> | ||
<name>Quarkus Community</name> | ||
<organization>Quarkus</organization> | ||
<organizationUrl>http://quarkus.io</organizationUrl> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the nitpicking but this should be https.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
83d7925
to
2e50374
Compare
Flatten quarkus-bom with
io.quarkus:quarkus-platform-bom-maven-plugin
'sflatten-platform-bom
goal. This goal generates a POM file containing the effective set of the managed dependencies of the original BOM ordered alphabetically (although there is a parameter to preserve the original ordering) with the exception of the Quarkus platform artifacts (such as the json descriptor and properties) that are moved to the top of the BOM.