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

Some fixes to allow JBang to work #13550

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

stuartwdouglas
Copy link
Member

  • Remove ASM dep from provided dep list (JBang will resolve an old
    version)
  • Default to using the quarkus bom if no managing project is supplied

@ghost ghost added area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/jbang Issues related to when using jbang.dev with Quarkus labels Nov 30, 2020
@maxandersen
Copy link
Member

Awesome. Weird why that didn't caught us before.

But okey - now really need to get bom support added.

@aloubyansky
Copy link
Member

The "managing project" should be null for the typical case, i.e. any Quarkus application. If it's not, this is not good. The managing project was introduced primarily to support the platform TS when the Quarkus version/platform of the imported test should be overridden with the current platform. From this perspective this change is really wrong.

Doesn't JBang generate the POM? Wouldn't it be easier to add the BOM on that side?

@maxandersen
Copy link
Member

jbang only generates a bare bones pom to work around code that assumes there are a physical pom present. we need to find a way to get away from that.

what does "platform TS" refer to ? testsuite ?

@aloubyansky
Copy link
Member

As I mentioned on the issue, at least quarkus-bom must be imported by any Quarkus app. Even if it's not about adding the platform properties. A BOM is required to guarantee the dependency versions are properly aligned.

Yes, the platform testsuite.

@aloubyansky
Copy link
Member

I haven't yet looked into how JBang [integration] sets this all up, but if for some reason it can be fixed there, I would look into hacking the place where the platform properties are resolved in Quarkus instead (i.e. where the exception is thrown in case they are missing).

@aloubyansky
Copy link
Member

I haven't yet looked into how JBang [integration] sets this all up, but if for some reason it can be fixed there, I would look into

I meant: can't be fixed there

@stuartwdouglas
Copy link
Member Author

The platform properties is not the main issue, there is only one that causes failures so that can be hacked around. The main issue is that the dependencies end up being resolved incorrectly, so we end up with an old ASM which fails.

@aloubyansky
Copy link
Member

Right, so that's the issue.

- Remove ASM dep from provided dep list (JBang will resolve an old
  version)
- Default to using the quarkus bom if no managing project is supplied
@stuartwdouglas
Copy link
Member Author

I have changed this so we just set the managing project to the bom when using the Quarkus integration.

I think this is all we can do for now, as real bom support would need to come from the JBang side.

Copy link
Member

@aloubyansky aloubyansky left a comment

Choose a reason for hiding this comment

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

Yes, that's fine, thanks @stuartwdouglas

Copy link
Member

@maxandersen maxandersen left a comment

Choose a reason for hiding this comment

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

LGTM

@maxandersen maxandersen merged commit 57ad702 into quarkusio:master Nov 30, 2020
@ghost ghost added this to the 1.11 - master milestone Nov 30, 2020
@maxandersen
Copy link
Member

the relevant bom issue is jbangdev/jbang#63 - only reason not done yet is that shrinkwrap blocks pom downloads - i'll see if I can "fix"/hack that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/jbang Issues related to when using jbang.dev with Quarkus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants