Skip to content

Gradle native build always fails with "Outputting both native and JAR packages is not currently supported" #40679

Answered by dmlloyd
languitar asked this question in Q&A
Discussion options

You must be logged in to vote

The short answer is, if you're building for native, set quarkus.package.jar.enabled=false and that should get you past the error. N.b. quarkus.jar.enabled is not the correct config key.

The long answer is that the Gradle tooling (specifically) doesn't support multiple outputs very well and in fact the integration isn't as good as I'd like. I'd like to discuss a plan to improve matters but it doesn't look to be very simple, so for now I think the workaround is what we have.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dmlloyd
Comment options

@languitar
Comment options

Answer selected by languitar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants