forked from apache/incubator-kie-kogito-runtimes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mac_contributing_info] Add instructions for Native Image build on MAC (
apache#2625) * [mac_contributing_info] Add instructions for Native Image build on MAC * [mac_contributing_info] Fix as per PR suggestion
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Setup MAC for Native image build | ||
================================ | ||
|
||
The following instructions use sdkman as jvm manager. While it is not mandatory, it is recommended to ease jvm switching during development. | ||
|
||
1. install sdkman: `curl -s "https://get.sdkman.io" | bash` | ||
2. install brew: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"` | ||
3. manually install GraalVM (Note: check [Quarkus documentation](https://quarkus.io/guides/building-native-image#configuring-graalvm) to get current supported version): `brew install --cask graalvm/tap/(*current_graalvm_version*)` | ||
4. link GraalVM inside sdkman: `sdk install java (*current_graalvm_version*)-grl /Library/Java/JavaVirtualMachines/(*current_graalvm_version*)/Contents/Home` | ||
5. go to directory containing code for native build | ||
6. set sdkman to use GraalVM: `sdk use java (*current_graalvm_version*)-grl` | ||
7. issue build: `mvn clean package -Pnative` |