Skip to content
Snippets Groups Projects
Commit b107a98c authored by Vincent Massol's avatar Vincent Massol
Browse files

[Misc] Update minimal java version to 11 + add warning only when java > 17...

[Misc] Update minimal java version to 11 + add warning only when java > 17 (since Java 17 is the LTS and we support it now)
parent d5c69b6d
No related branches found
No related tags found
No related merge requests found
......@@ -202,11 +202,11 @@ if [ ! "$XWIKI_NONINTERACTIVE" = true ] ; then
echo "No Java found. You need Java installed for XWiki to work."
exit 0
fi
if [ "$JAVA_VERSION" -lt 8 ]; then
echo This version of XWiki requires Java 8 or greater.
if [ "$JAVA_VERSION" -lt 11 ]; then
echo This version of XWiki requires Java 11 or greater.
exit 0
fi
if [ "$JAVA_VERSION" -gt 11 ]; then
if [ "$JAVA_VERSION" -gt 17 ]; then
read -p "You're using Java $JAVA_VERSION which XWiki doesn't fully support yet. Continue (y/N)? " -n 1 -r
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 0
......
......@@ -237,11 +237,11 @@ if [ ! "$XWIKI_NONINTERACTIVE" = true ] ; then
echo "No Java found. You need Java installed for XWiki to work."
exit 0
fi
if [ "$JAVA_VERSION" -lt 8 ]; then
echo This version of XWiki requires Java 8 or greater.
if [ "$JAVA_VERSION" -lt 11 ]; then
echo This version of XWiki requires Java 11 or greater.
exit 0
fi
if [ "$JAVA_VERSION" -gt 11 ]; then
if [ "$JAVA_VERSION" -gt 17 ]; then
read -p "You're using Java $JAVA_VERSION which XWiki doesn't fully support yet. Continue (y/N)? " -n 1 -r
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment