./gradle assemble
./docker-build.sh
Or locally
./gradle assemble
native-image --no-server -cp build/libs/qleak-*.jar
The project was initialized using the following micronaut command
mn create-cli-app qleak --lang kotlin --features=graal-native-image
brew cask install graalvm-ce-java11 (1)
brew install --HEAD jenv (2)
sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-ce-java11-19.3.0/ (3)
jenv add /Library/Java/JavaVirtualMachines/graalvm-ce-java11-19.3.0/Contents/Home/ (4)
gu install native-image (5)
jenv rehash (6)
-
install the latest graalvm
-
get jenv from head to support providers
-
Since GraalVM 19.3.0 is not yet notarized, it is necessary to remove the quarantine flags
-
Tell jenv where to find graalvm
-
Get
native-image
binary -
Tell jenv to rehash in order to generate the shim of
native-image