The cross-platform native Kotlin command line tool template.
You will need Java 21 or higher. To build the utility, run the command:
./gradlew clean installDist
You can also build the utility into native executable file or Docker image.
You will need GraalVM 21 and native-image
pre-installed:
./gradlew clean nativeCompile
Also, native files (macOS, Linux, Windows) will be auto generated by GitHub CI.
The executable file will be located at ./build/native/nativeCompile/
docker build . -t jvm-app-image
docker build . -f graal.Dockerfile -t native-app-image
or
docker build --platform linux/amd64 . -f graal.Dockerfile -t native-app-image