From 198af16822b3d57b9366aba636e1a69926727385 Mon Sep 17 00:00:00 2001 From: Michiel Meeuwissen Date: Thu, 11 Apr 2024 11:12:21 +0200 Subject: [PATCH] added check for java version --- start.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/start.sh b/start.sh index 2e07adf4..e5772142 100755 --- a/start.sh +++ b/start.sh @@ -1,3 +1,12 @@ + java -version +java_version=`java -version 2>&1 | fgrep -i version | cut -d'"' -f2 | sed -e 's/^1\./1\%/' -e 's/\..*//' -e 's/%/./'` + +if [[ $java_version -gt 11 ]] ; then + echo "Java version $java_version must not be > 11" + exit 1 +fi + + mvn -DskipTests=false compile dependency:copy-dependencies exec:exec