This repository is a sample for using GraalVM Native Image with Kotlin.
CI/CD is configured with GitHub Actions. Therefore, you can retrieve artifacts from the Actions tab.
- GraalVM 21
Make a fatJar with shadowJar.
$ ./gradlew shadowJar
Run the command below to create a native image on GraalVM.
$ native-image -jar build/libs/jar/*-all.jar build/libs/out/ktimage -H:+UnlockExperimentalVMOptions -H:EnableURLProtocols=http,https --no-fallback