Snappawapa
Snappawapa

Reputation: 2012

Quarkus Native additional build args with Gradle

Trying to solve an issue with Proxy classes + native mode with Quarkus, and hitting a roadblock.

The docs outlining the tips for solving the issue don't specify how to add the additional build args with Gradle....

Reference docs: https://quarkus.io/guides/writing-native-applications-tips#managing-proxy-classes

The odd point being I found the following issue outlining an addition for Gradle, but no mention on the docs, and the command the issue recommends doesn't seem to work either (--additional-build-args)

https://github.com/quarkusio/quarkus/issues/3484

How does one pass the args to Graal?

Upvotes: 0

Views: 1548

Answers (1)

geoand
geoand

Reputation: 64011

The easiest way to is configure application.properties with all the additional setting you need.

For example you could have something like:

quarkus.native.additional-build-args=-H:IncludeResources=.*\\.jks,-H:EnableURLProtocols=http\\,https

Upvotes: 1

Related Questions