clj-commons / clj-yaml

YAML encoding and decoding for Clojure
Other
122 stars 26 forks source link

Make it easier for folks to include clj-yaml in a GraalVM native image #104

Closed lread closed 1 year ago

lread commented 1 year ago

SnakeYAML, and therefore clj-yaml, needs some config/options specified to work successfully with GraalVM native-image.

This config can be specified in a lib in such a way it will automatically be picked up by GraalVM native-image.

Here's an example of such a config from babashka.

This work implies adding native-image tests on CI.

Currently known to be needed is:

     --initialize-at-build-time=org.yaml.snakeyaml
borkdude commented 1 year ago

Yep, let's add such a config.