Link

Resources:

  1. https://spring.io/blog/2020/04/16/spring-tips-the-graalvm-native-image-builder-feature
  2. https://github.com/mike-neck/graalvm-native-image-plugin
$ sdk list java
 GraalVM       |     | 20.1.0.r11   | grl     |            | 20.1.0.r11-grl
               |     | 20.1.0.r8    | grl     |            | 20.1.0.r8-grl
               |     | 20.0.0.r11   | grl     |            | 20.0.0.r11-grl
               |     | 20.0.0.r8    | grl     |            | 20.0.0.r8-grl
               |     | 19.3.1.r11   | grl     |            | 19.3.1.r11-grl
               |     | 19.3.1.r8    | grl     |            | 19.3.1.r8-grl
$ sdk install java 20.1.0.r11-grl
$ vi ~/.oh-my-zsh/custom/dev.zsh
alias graalvm='sdk default java 20.1.0.r11-grl'
alias java8='sdk default java 8.0.252.hs-adpt'
alias java11='sdk default java 11.0.6.hs-adpt'
alias java14='sdk default java 14.0.1.hs-adpt'
alias graalvm='sdk default java 20.1.0.r11-grl'
$ gu --version
GraalVM Updater 20.1.0

Install the native image builder

$ gu install native-image
Downloading: Component catalog from www.graalvm.org
Processing Component: Native Image
Downloading: Component native-image: Native Image  from github.com
Installing new component: Native Image (org.graalvm.native-image, version 20.1.0)