From 1635f613685ef98b834066dab0514a22a97236c4 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 20 Oct 2022 10:36:42 +0200 Subject: [PATCH] Update GraalVM requirement to 22.3 See gh-32813 --- .../src/docs/asciidoc/attributes.adoc | 4 ++-- .../developing-your-first-application.adoc | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc index c2f141786d..04db5f386a 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/attributes.adoc @@ -110,6 +110,6 @@ :micrometer-concepts-docs: {micrometer-docs}/concepts :micrometer-registry-docs: {micrometer-docs}/registry :tomcat-docs: https://tomcat.apache.org/tomcat-9.0-doc -:graal-version: 22.2 +:graal-version: 22.3 :graal-native-image-docs: https://www.graalvm.org/{graal-version}/reference-manual/native-image -:liberica-nik-download: https://bell-sw.com/pages/downloads/native-image-kit/ +:liberica-nik-download: https://bell-sw.com/pages/downloads/native-image-kit/#/nik-22-17-ea diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/native-image/developing-your-first-application.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/native-image/developing-your-first-application.adoc index a73c5eb6f3..e5c7a5c153 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/native-image/developing-your-first-application.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/native-image/developing-your-first-application.adoc @@ -150,7 +150,7 @@ You can use them to perform a variety of GraalVM tasks, including generating a n To build a native image using the Native Build Tools, you'll need a GraalVM distribution on your machine. You can either download it manually on the {liberica-nik-download}[Liberica Native Image Kit page], or you can use a download manager like SDKMAN!. - +NOTE: If you download it manually, make sure to download the NIK 22-EA version, which is based on GraalVM 22.3. [[native-image.developing-your-first-application.native-build-tools.prerequisites.linux-macos]] ===== Linux and MacOS @@ -160,8 +160,8 @@ Get SDKMAN! from https://sdkman.io and install the Liberica GraalVM distribution [source,shell,indent=0,subs="verbatim,attributes"] ---- - $ sdk install java 22.2.r17-nik - $ sdk use java 22.2.r17-nik + $ sdk install java {graal-version}.r17-nik + $ sdk use java {graal-version}.r17-nik ---- Verify that the correct version has been configured by checking the output of `java -version`: @@ -169,16 +169,17 @@ Verify that the correct version has been configured by checking the output of `j [source,shell,indent=0,subs="verbatim,attributes"] ---- $ java -version - openjdk version "17.0.4" 2022-07-19 LTS - OpenJDK Runtime Environment GraalVM 22.2.0 (build 17.0.4+8-LTS) - OpenJDK 64-Bit Server VM GraalVM 22.2.0 (build 17.0.4+8-LTS, mixed mode) + openjdk version "17.0.5" 2022-10-18 LTS + OpenJDK Runtime Environment GraalVM 22.3.0 (build 17.0.5+8-LTS) + OpenJDK 64-Bit Server VM GraalVM 22.3.0 (build 17.0.5+8-LTS, mixed mode) ---- [[native-image.developing-your-first-application.native-build-tools.prerequisites.windows]] ===== Windows -On Windows, follow https://medium.com/graalvm/using-graalvm-and-native-image-on-windows-10-9954dc071311[these instructions] to install either https://www.graalvm.org/downloads/[GraalVM] or https://bell-sw.com/pages/downloads/native-image-kit/[Liberica Native Image Kit], Visual Studio Build Tools and Windows SDK. + +On Windows, follow https://medium.com/graalvm/using-graalvm-and-native-image-on-windows-10-9954dc071311[these instructions] to install either https://www.graalvm.org/downloads/[GraalVM] or {liberica-nik-download}[Liberica Native Image Kit] in version {graal-version}, the Visual Studio Build Tools and the Windows SDK. Due to the https://docs.microsoft.com/en-US/troubleshoot/windows-client/shell-experience/command-line-string-limitation[Windows related command-line maximum length], make sure to use x64 Native Tools Command Prompt instead of the regular Windows command line to run Maven or Gradle plugins.