Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 906 Bytes

README.md

File metadata and controls

43 lines (27 loc) · 906 Bytes

graal-utility

The cross-platform native Kotlin command line tool template.

Building jar file

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.

Building native executable file

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/

Building Docker image with jvm

docker build . -t jvm-app-image

Building Docker image with native code

docker build . -f graal.Dockerfile -t native-app-image

or

docker build --platform linux/amd64 . -f graal.Dockerfile -t native-app-image