Skip to content

Commit

Permalink
Update message complaining about outdated GraalVM
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Nov 5, 2019
1 parent a29267b commit 4ace4d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ public NativeImageBuildItem build(NativeConfig nativeConfig, NativeImageSourceJa
private boolean isThisGraalVMVersionObsolete() {
final String vmName = System.getProperty("java.vm.name");
log.info("Running Quarkus native-image plugin on " + vmName);
final List<String> obsoleteGraalVmVersions = Arrays.asList("1.0.0", "19.0.", "19.1.");
final List<String> obsoleteGraalVmVersions = Arrays.asList("1.0.0", "19.0.", "19.1.", "19.2.0");
final boolean vmVersionIsObsolete = obsoleteGraalVmVersions.stream().anyMatch(vmName::contains);
if (vmVersionIsObsolete) {
log.error("Out of date build of GraalVM detected! Please upgrade to GraalVM 19.2.0.");
log.error("Out of date build of GraalVM detected! Please upgrade to GraalVM 19.2.1.");
return true;
}
return false;
Expand Down

0 comments on commit 4ace4d7

Please sign in to comment.