Closed borkdude closed 3 years ago
I'm planning to make a library out of this. Perhaps we can use the Graal annotations processor to accomplish this goal, so then users would only have to include a library on their classpath.
Relevant APIs:
@ericdallo Made a repo here where we can implement this:
I guess we can start recommending https://github.com/clj-easy/graal-build-time over the global --initialize-at-build-time
option now.
Note to self: warning output from GraalVM 21.2.0
--initialize-at-build-time without arguments has been deprecated and will be removed in GraalVM 22.0.
https://github.com/lread/clj-graal-docs#class-initialization
See https://github.com/oracle/graal/discussions/3476
From Graal 22 on, the global
--initialize-at-build-time
option will be deprecated.It is possible to get a list of Clojure-produced packages with something like:
and then make a comma separated list out of that:
This has an additional benefit that not all Java classes are initialized at build time, reducing the chance on any incorrect behavior.