I'm trying to build a Quarkus project native image, and I need to introduce the Datadog agent to it. The Datadog documentation says:
/mvnw package -Dnative -Dquarkus.native.additional-build-args='-J-javaagent:/path/to/dd-java-agent.jar'
I'm using Gradle, so I downloaded the jar and added it as a dependency in my project and added the following line in the properties file: quarkus.native.additional-build-args=-J-javaagent:dd-java-agent.jar
. However, Gradle seems to rename the jar by adding a hash to it, and even though I added the hash to the properties file Quarkus doesn't seem to find the file during the build of the image.
What is the correct way of doing this?