-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Conversation
Awesome. Weird why that didn't caught us before. But okey - now really need to get bom support added. |
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? |
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 ? |
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. |
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). |
I meant: can't be fixed there |
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. |
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
5ce4601
to
99f1859
Compare
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. |
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.
Yes, that's fine, thanks @stuartwdouglas
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.
LGTM
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 :) |
version)