-
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
Gradle plugin Uber-jar to use application.property quarkus.package.uber-jar=true like Maven #5036
Comments
Hi, with Quarkus
And to get the uber-jar. Can you give it a shot please? |
Same outcome. Uber jar worked, yet I still have the version increment. I’m now on version 8 of ApplicationImpl.
3238 Wed Oct 30 23:47:05 SGT 2019 io/quarkus/runner/ApplicationImpl8.class
… On 30 Oct 2019, at 11:45 PM, Georgios Andrianakis ***@***.***> wrote:
./gradlew clean build -x native -x check -Dquarkus.package.uber-jar=true
|
Needless to say I don't have this issue with the Maven plugin (the version increment). |
That is weird... Even with the |
Yes, with clean it still kept incrementing. Seems to be a gradle cache issue. I've just run it with --no-daemon and it's fine! ./gradlew clean build -x buildNative -x check -Dquarkus.package.uber-jar=true --no-daemon
|
Wow! That's pretty crazy... |
I don't think we need this count thing any more, I think it was to work around class loading issues for tests back when our internal tests did not have an isolated class loader. |
@oztimpower Would you be able to check and see if Stuart's #5060 PR fixes the issue with the gradle daemin? |
Yes, after multi-executions with the same Gradle daemon I confirm it's stable. Much appreciated! Validated below:
|
Thanks for checking @oztimpower! |
Description
Maven has really simple Uber-jar creation via the application.property quarkus.package.uber-jar=true. Would it be possible to Gradle to also use this property.
Reason being, I'm seeing really weird behaviour using:
It's incrementing the number on the runner ApplicationImpl. This needs to be "1", as it's hard-coded in Class.ForName on startup in the Amazon-Lambda Stream Handler I'm testing.
Seems to be a bug. Every time I run the build (after a clean) it is still incrementing the version of this class.
It would be nice therefore to have the application.property used instead.
The text was updated successfully, but these errors were encountered: