Open dmurat opened 3 years ago
Tnx for replay.
I believe https://github.com/micronaut-projects/micronaut-core/issues/4597 and this issue are different. In my case resource is included but it is not pre-processed since is included from source directories instead of the build directory.
I think the reason is this line https://github.com/micronaut-projects/micronaut-gradle-plugin/blob/329e5fa8d92ac62ab48357714da3bfdc8a9fbb63/src/main/java/io/micronaut/gradle/graalvm/MicronautGraalPlugin.java#L121 in MicronautGraalPlugin
. It includes resources directly from source set files, while it probably should work with files from source set outputs.
I have the
version.properties
resource containing tokens replaced via GradleprocessResources
tasks. When trying to generate a native image, theMicronautGraalPlugin
uses resources from thesrc/main/resources
directory. I believe, it should use resources from thebuild/resources/main
directory instead.micronaut-gradle-plugin version: 1.2.0
Tnx.