This commit is contained in:
Michiel Borkent 2020-01-04 20:28:17 +01:00
parent 1d3cd975ba
commit 8f005224ca

View file

@ -655,7 +655,16 @@ You need [Leiningen](https://leiningen.org/), and for building binaries you need
`lein repl` will get you a standard REPL/nREPL connection. To work on tests use `lein with-profiles +test repl`. `lein repl` will get you a standard REPL/nREPL connection. To work on tests use `lein with-profiles +test repl`.
### Generate reflection.json file ### Adding classes
Add necessary classes to `babashka/impl/classes.clj`. For every addition, write
a unit test, so it's clear why it is added and removing it will break the
tests. Try to reduce the size of the binary by only adding the necessary parts
of a class in `:instance-check`, `:constructors`, `:methods`, `:fields` or
`:custom`.
The `reflection.json` file that is needed for GraalVM compilation is generated
with:
lein with-profiles +reflection run lein with-profiles +reflection run