You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Task nativeTestCompile works as described in the docs as it executes command native-image with entry build/native/agent-output/test added to the -H:ConfigurationFileDirectories parameter.
Now, if I gathered the metadata first by running ./gradlew -Pagent test, I would like to add entry build/native/agent-output/test to the -H:ConfigurationFileDirectories parameter of command native-image executed by task dockerfileNative; how do I do that? Otherwise task dockerBuildNative will not be successful giving the metadata is not included in the generated image. I see that task dockerfileNative has property nativeImageOptions.get().asCompileOptions().configurationFileDirectories which doesn't seem to be mutable at configuration time; what am I missing?
Additional context
The question I'm asking here for the micronaut-docker-plugin as very similar to the question I asked with the native-gradle-plugin.
System Info (please complete the following information):
OS: Linux 5.15.146.1-microsoft-standard-WSL2 GNU/Linux
GraalVM Version: Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1
Java Version: 21
Plugin version: micronaut-docker-plugin:4.3.3
The text was updated successfully, but these errors were encountered:
Issue description
Description
Task
nativeTestCompile
works as described in the docs as it executes commandnative-image
with entrybuild/native/agent-output/test
added to the-H:ConfigurationFileDirectories
parameter.Now, if I gathered the metadata first by running
./gradlew -Pagent test
, I would like to add entrybuild/native/agent-output/test
to the-H:ConfigurationFileDirectories
parameter of commandnative-image
executed by taskdockerfileNative
; how do I do that? Otherwise taskdockerBuildNative
will not be successful giving the metadata is not included in the generated image. I see that taskdockerfileNative
has propertynativeImageOptions.get().asCompileOptions().configurationFileDirectories
which doesn't seem to be mutable at configuration time; what am I missing?Additional context
The question I'm asking here for the
micronaut-docker-plugin
as very similar to the question I asked with the native-gradle-plugin.System Info (please complete the following information):
Linux 5.15.146.1-microsoft-standard-WSL2 GNU/Linux
Java(TM) SE Runtime Environment Oracle GraalVM 21.0.2+13.1
21
micronaut-docker-plugin:4.3.3
The text was updated successfully, but these errors were encountered: