Skip to content

Commit

Permalink
added check for java version
Browse files Browse the repository at this point in the history
  • Loading branch information
mihxil committed Apr 11, 2024
1 parent c5d855d commit 198af16
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 198af16

Please sign in to comment.