From 7b1abb3ca9a0a47afbcf4299638fc09e37b2405a Mon Sep 17 00:00:00 2001 From: Brian Demers Date: Wed, 29 Mar 2023 13:18:00 -0400 Subject: [PATCH] Add user friendly error when Java < 17 is used Add an enforcer rule with a custom message to detect if the JVM version is too old --- pom.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pom.xml b/pom.xml index f467afc3b7c..a6c550fccbc 100644 --- a/pom.xml +++ b/pom.xml @@ -129,6 +129,26 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + + + enforce-java + + enforce + + + + + This build requires at least Java ${java.version}, update your JVM, and run the build again + ${java.version} + + + + + + org.apache.maven.plugins maven-checkstyle-plugin