Skip to content

Conversation

gsmet
Copy link
Member

@gsmet gsmet commented Mar 1, 2019

This one is a big one. The idea is to definitely fix issues such as #1134 .

Stuart tried at some point to inject the RESTEasy BOM in our BOM but it failed because the other dependencies were missing.

This PR injects all the versions in the BOM.

Note that we might have to add more dependencies to the BOM if we find some issues but at least the issue will be fixed once and for all.

  • The first commit can be totally ignored: it's just a reformatting, the BOM was indented with 3 spaces instead of 4.
  • The second commit is a follow-up of Stuart's work here that was never merged: https://github.com/jbossas/protean-shamrock/pull/778/files . The issue with the initial PR is that, with offline, even the local repository is ignored thus it couldn't find the artifact. This commit is necessary because, otherwise, the Maven plugin ITs download the BOM from the remote repository so it's impossible to do structural BOM changes as it downloads an outdated version.
  • The third commit is the real work.

Obviously, this is a structural change but, considering the old way was breaking existing applications, I think this work is a solid foundation and we can tweak it by adding additional dependencies to the BOM if we detect issues.

BTW the approach is very similar to what Spring Boot does with its dependencies pom.

gsmet added 3 commits March 1, 2019 20:11
It was indented with 3 spaces.
Otherwise it's impossible to make updates to the BOM that affects the
Maven plugin as the Maven plugin tests gets the BOM from the remote
repository, thus getting an outdated version.
This will avoid dependency hell. Typically, the REST HTTP demo just
stopped working due to javax.json being 1.1.2 there whereas it's 1.1.4
in Quarkus.

See #1134

We might have to add more in the future and tune this.
@stuartwdouglas stuartwdouglas merged commit 6e649cd into quarkusio:master Mar 2, 2019
@gsmet gsmet added this to the 0.11.0 milestone Mar 2, 2019
maxandersen added a commit to maxandersen/quarkus that referenced this pull request Nov 5, 2022
…uarkusio#1141)

* fix: Allow --deps to specify multiple dependencies (quarkusio#815)

* Apply suggestion

Co-authored-by: Max Rydahl Andersen <[email protected]>

* Apply suggestion

Co-authored-by: Max Rydahl Andersen <[email protected]>

Co-authored-by: Max Rydahl Andersen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants