Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 2e10163

Browse files
committed
Update documentation for Bellsoft Liberica NIK usage
Closes gh-1357
1 parent 3d5c3be commit 2e10163

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

spring-native-docs/src/main/asciidoc/attributes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
:buildpacks: https://buildpacks.io/
99
:buildpacks-docs: {buildpacks}/docs
10-
:buildpacks-java-native-image-version: 5.5.0
10+
:buildpacks-java-native-image-version: 7.1.0
1111

1212
:paketo: https://paketo.io/
1313
:paketo-docs: {paketo}/docs

spring-native-docs/src/main/asciidoc/getting-started-buildpacks.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ The plugin provides a number of options to customize the transformations, see <<
144144
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.
145145
The https://github.com/paketo-buildpacks/native-image[native image buildpack] can be enabled using the `BP_NATIVE_IMAGE` environment variable as follows:
146146

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.
147148

148149
[source,xml,subs="attributes,verbatim",role="primary"]
149150
.Maven

spring-native-docs/src/main/asciidoc/getting-started-native-build-tools.adoc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ This is a practical guide that uses the https://spring.io/guides/gs/rest-service
1010
A number of {graalvm-native-docs}/#prerequisites[prerequisites] are required before installing the GraalVM `native-image` compiler.
1111
You then need a local installation of the native image compiler.
1212

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+
1318
To install the native image compiler on MacOS or Linux, we recommend using https://sdkman.io/[SDKMAN]:
1419

1520
* 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`
1823
* Run `gu install native-image` to bring in the native-image extensions to the JDK.
1924

20-
Alternatively or if you are on Microsoft Windows, you can manually install GraalVM builds as follows:
21-
22-
* Download https://www.graalvm.org/downloads/[GraalVM {graalvm-version}].
23-
* Set `JAVA_HOME` and `PATH` appropriately.
24-
* 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.
2526

2627
==== Sample Project Setup
2728

0 commit comments

Comments
 (0)