From 625c6cf588a5dd685f21f7260c31c9830587e778 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Thu, 12 Oct 2023 17:48:29 +0100 Subject: [PATCH] Update builder images to jdk-21 - Update the GraalVM Community builder image to the tag `jdk-21` - Update the Mandrel builder image to the tag `jdk-21`(Mandrel 23.1) - Update GraalVM SDK version to 23.1 (yes, it does not follow the same version scheme) --- .../io/quarkus/deployment/pkg/NativeConfig.java | 6 +++--- .../io/quarkus/deployment/pkg/steps/GraalVM.java | 2 +- .../quarkus/deployment/pkg/NativeConfigTest.java | 14 +++++++------- docs/pom.xml | 8 ++++---- independent-projects/bootstrap/pom.xml | 2 +- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java index 977cb104e04610..c973f8a449a91e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java @@ -20,8 +20,8 @@ @ConfigMapping(prefix = "quarkus.native") public interface NativeConfig { - String DEFAULT_GRAALVM_BUILDER_IMAGE = "quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:jdk-17"; - String DEFAULT_MANDREL_BUILDER_IMAGE = "quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-17"; + String DEFAULT_GRAALVM_BUILDER_IMAGE = "quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:jdk-21"; + String DEFAULT_MANDREL_BUILDER_IMAGE = "quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-21"; /** * Comma-separated, additional arguments to pass to the build process. @@ -225,7 +225,7 @@ default boolean isExplicitContainerBuild() { interface BuilderImageConfig { /** * The docker image to use to do the image build. It can be one of `graalvm`, `mandrel`, or the full image path, e.g. - * {@code quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-17}. + * {@code quay.io/quarkus/ubi-quarkus-mandrel-builder-image:jdk-21}. */ @WithParentName @WithDefault("${platform.quarkus.native.builder-image}") diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java index e0bacc8780aedb..6fa2aa252fc1f5 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/GraalVM.java @@ -155,7 +155,7 @@ public static final class Version implements Comparable { public static final Version VERSION_23_1_0 = new Version("GraalVM 23.1.0", "23.1.0", Distribution.GRAALVM); public static final Version MINIMUM = VERSION_22_2_0; - public static final Version CURRENT = VERSION_23_0_0; + public static final Version CURRENT = VERSION_23_1_0; public static final int UNDEFINED = -1; final String fullVersion; diff --git a/core/deployment/src/test/java/io/quarkus/deployment/pkg/NativeConfigTest.java b/core/deployment/src/test/java/io/quarkus/deployment/pkg/NativeConfigTest.java index cb6a429e20f4d8..654655f32234ea 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/pkg/NativeConfigTest.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/pkg/NativeConfigTest.java @@ -9,20 +9,20 @@ class NativeConfigTest { @Test public void testBuilderImageProperlyDetected() { assertThat(createConfig("graalvm").builderImage().getEffectiveImage()).contains("ubi-quarkus-graalvmce-builder-image") - .contains("jdk-17"); + .contains("jdk-21"); assertThat(createConfig("GraalVM").builderImage().getEffectiveImage()).contains("ubi-quarkus-graalvmce-builder-image") - .contains("jdk-17"); + .contains("jdk-21"); assertThat(createConfig("GraalVM").builderImage().getEffectiveImage()).contains("ubi-quarkus-graalvmce-builder-image") - .contains("jdk-17"); + .contains("jdk-21"); assertThat(createConfig("GRAALVM").builderImage().getEffectiveImage()).contains("ubi-quarkus-graalvmce-builder-image") - .contains("jdk-17"); + .contains("jdk-21"); assertThat(createConfig("mandrel").builderImage().getEffectiveImage()).contains("ubi-quarkus-mandrel-builder-image") - .contains("jdk-17"); + .contains("jdk-21"); assertThat(createConfig("Mandrel").builderImage().getEffectiveImage()).contains("ubi-quarkus-mandrel-builder-image") - .contains("jdk-17"); + .contains("jdk-21"); assertThat(createConfig("MANDREL").builderImage().getEffectiveImage()).contains("ubi-quarkus-mandrel-builder-image") - .contains("jdk-17"); + .contains("jdk-21"); assertThat(createConfig("aRandomString").builderImage().getEffectiveImage()).isEqualTo("aRandomString"); } diff --git a/docs/pom.xml b/docs/pom.xml index 38070aa3d12c19..dbf502dbfae576 100644 --- a/docs/pom.xml +++ b/docs/pom.xml @@ -17,10 +17,10 @@ - for JDK 17 - jdk17 - jdk-17 - jdk-17 + for JDK 21 + jdk21 + jdk-21 + jdk-21 3.5.0 2.0.0 diff --git a/independent-projects/bootstrap/pom.xml b/independent-projects/bootstrap/pom.xml index 449aa916eec8df..b53b42b3de5031 100644 --- a/independent-projects/bootstrap/pom.xml +++ b/independent-projects/bootstrap/pom.xml @@ -70,7 +70,7 @@ 3.0.2.Final 1.1.0.Final 1.7.36 - 23.0.1 + 23.1.0 2.6.0 2.0 1.26