Note: You can't run in the sbt shell because jline can't figure out the terminal stuff
bin/sbt booker/stage && booker/target/universal/stage/bin/booker
Generate GraalVM Config:
- Install GraalVM: https://github.com/graalvm/graalvm-ce-builds/releases
- Set the
JAVA_HOME
env var accordingly - Download the native-image jar and extract it in
$JAVA_HOME
- Add the
$JAVA_HOME/bin
to the front of thePATH
- Make
native-image
executable:chmod +x $JAVA_HOME/lib/svm/bin/native-image
- Create the executable:
bin/sbt booker/stage
- Setup the agent:
export JAVA_OPTS="-agentlib:native-image-agent=config-output-dir=booker/src/main/resources/META-INF/native-image"
- Run Booker via JVM:
booker/target/universal/stage/bin/booker
- Run:
bin/sbt booker/graalvm-native-image:packageBin