sbt-native-packager icon indicating copy to clipboard operation
sbt-native-packager copied to clipboard

graal resources not copied

Open jamesward opened this issue 5 years ago • 2 comments
trafficstars

Using 1.7.0:

  1. I created src/graal/reflect.json
  2. I specify "-H:ReflectionConfigurationFiles=stage/resources/reflect.json" in my graalVMNativeImageOptions
  3. I do not have graalVMNativeImageGraalVersion set
  4. I run graalvm-native-image:packageBin but the resources do not get copied to target/graalvm-native-image resulting in native-image being unable to find the file

jamesward avatar Apr 22 '20 14:04 jamesward

Thanks @jamesward for the bug report.

It seems that the graalvm plugin only uses the resources directories for builds with the docker image.

should this file only available for the build or is this part of the image in the end?

muuki88 avatar Apr 22 '20 14:04 muuki88

Thanks for the quick response! Ah! That is why I did see this working on another project (where I was running in docker). It just needs to be there for the build.

jamesward avatar Apr 22 '20 14:04 jamesward