The following instructions use sdkman as jvm manager. While it is not mandatory, it is recommended to ease jvm switching during development.
- install sdkman:
curl -s "https://get.sdkman.io" | bash
- install brew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- manually install GraalVM (Note: check Quarkus documentation to get current supported version):
brew install --cask graalvm/tap/(*current_graalvm_version*)
- link GraalVM inside sdkman:
sdk install java (*current_graalvm_version*)-grl /Library/Java/JavaVirtualMachines/(*current_graalvm_version*)/Contents/Home
- go to directory containing code for native build
- set sdkman to use GraalVM:
sdk use java (*current_graalvm_version*)-grl
- issue build:
mvn clean package -Pnative