Not sure if this should be on the task help output, a warning, or in the docs, but if you're using the micronaut openapi generation and a standalone docker file for your builds (our CI environment requires this), you have to update the resource-config.json for the resource files.
This is done automatically by the dockerBuildNative task by dynamically adding the micronaut-graal annotation processor, but was pretty challenging to figure out as a person new to graalvm.
The prerequisite to make things work as espected in standalone native-image dockerfile builds is to add the following annotation to your build.gradle:
annotationProcessor("io.micronaut:micronaut-graal:$micronautVersion")
Not sure if this should be on the task help output, a warning, or in the docs, but if you're using the micronaut openapi generation and a standalone docker file for your builds (our CI environment requires this), you have to update the resource-config.json for the resource files.
This is done automatically by the dockerBuildNative task by dynamically adding the micronaut-graal annotation processor, but was pretty challenging to figure out as a person new to graalvm.
The prerequisite to make things work as espected in standalone native-image dockerfile builds is to add the following annotation to your build.gradle:
annotationProcessor("io.micronaut:micronaut-graal:$micronautVersion")