You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: spring-native-docs/src/main/asciidoc/getting-started-buildpacks.adoc
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,7 @@ The plugin provides a number of options to customize the transformations, see <<
144
144
Spring Boot's {spring-boot-docs}/html/spring-boot-features.html#boot-features-container-images-buildpacks[Cloud Native Buildpacks support] lets you build a container for your Spring Boot application.
145
145
The https://github.com/paketo-buildpacks/native-image[native image buildpack] can be enabled using the `BP_NATIVE_IMAGE` environment variable as follows:
146
146
147
+
NOTE: As of Spring Native 0.11, https://bell-sw.com/pages/liberica-native-image-kit/[Liberica Native Image Kit] (NIK) is the `native-image` compiler distribution used by default with Buildpacks.
Copy file name to clipboardExpand all lines: spring-native-docs/src/main/asciidoc/getting-started-native-build-tools.adoc
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,19 @@ This is a practical guide that uses the https://spring.io/guides/gs/rest-service
10
10
A number of {graalvm-native-docs}/#prerequisites[prerequisites] are required before installing the GraalVM `native-image` compiler.
11
11
You then need a local installation of the native image compiler.
12
12
13
+
There are various distributions of the `native-image` compiler available, here we focus on those 2 ones:
14
+
15
+
* https://www.graalvm.org/[GraalVM] CE based on the https://github.com/oracle/graal[GraalVM open-source repository] and LabsJDK
16
+
* Bellsoft https://bell-sw.com/pages/liberica-native-image-kit/[Liberica Native Image Kit] (NIK) based on the https://github.com/oracle/graal[GraalVM open-source repository] and Liberica JDK
17
+
13
18
To install the native image compiler on MacOS or Linux, we recommend using https://sdkman.io/[SDKMAN]:
14
19
15
20
* https://sdkman.io/install[Install SDKMAN].
16
-
* Install GraalVM with `sdk install java {graalvm-version}.r11-grl` for Java 11.
17
-
* Make sure to use the newly installed JDK with `sdk use java {graalvm-version}.r11-grl`.
21
+
* Install a GraalVM native-image distribution, either GraalVM CE (`grl` suffix) or Bellsoft Liberica NIK (`nik` suffix), here we go with Liberica NIK Java 11 variant: `sdk install java {graalvm-version}.r11-nik`
22
+
* Make sure to use the newly installed JDK with `sdk use java {graalvm-version}.r11-nik`
18
23
* Run `gu install native-image` to bring in the native-image extensions to the JDK.
19
24
20
-
Alternatively or if you are on Microsoft Windows, you can manually install GraalVM builds as follows:
* Run `gu install native-image` to bring in the native-image extensions to the JDK.
25
+
Alternatively or if you are on Microsoft Windows, you can manually install builds from https://www.graalvm.org/downloads/[GraalVM] or https://bell-sw.com/pages/downloads/native-image-kit/[Liberica NIK]. Don't forget to set `JAVA_HOME` / `PATH` appropriately if needed and to run `gu install native-image` to bring in the native-image extensions.
0 commit comments