From 9bfc6422b5579484b4d8cca7fa38f74d95e77ecb Mon Sep 17 00:00:00 2001 From: Gwenneg Lepage Date: Thu, 20 Feb 2020 21:55:41 +0100 Subject: [PATCH] Allow both GraalVM 19.3.1 and 20.0.0 --- .../quarkus/deployment/pkg/steps/NativeImageBuildStep.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java index 89d31cf4bd2ed2..72d4954b884d03 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java @@ -344,11 +344,12 @@ public NativeImageBuildItem build(NativeConfig nativeConfig, NativeImageSourceJa private void checkGraalVMVersion(String version) { log.info("Running Quarkus native-image plugin on " + version); - final List obsoleteGraalVmVersions = Arrays.asList("1.0.0", "19.0.", "19.1.", "19.2.", "19.3."); + final List obsoleteGraalVmVersions = Arrays.asList("1.0.0", "19.0.", "19.1.", "19.2.", "19.3.0"); final boolean vmVersionIsObsolete = obsoleteGraalVmVersions.stream().anyMatch(v -> version.contains(" " + v)); if (vmVersionIsObsolete) { - throw new IllegalStateException( - "Out of date version of GraalVM detected: " + version + ". Please upgrade to GraalVM 20.0.0."); + throw new IllegalStateException("Unsupported version of GraalVM detected: " + version + "." + + " Quarkus currently offers a stable support of GraalVM 19.3.1 and a preview support of GraalVM 20.0.0." + + " Please upgrade GraalVM to one of these versions."); } }