java 17 -> java 21

This commit is contained in:
Robert Muir 2024-02-09 15:17:46 -05:00
parent fefde0f721
commit 23ecac438a
No known key found for this signature in database
GPG Key ID: 817AE1DD322D7ECA
2 changed files with 2 additions and 2 deletions

2
gradlew vendored
View File

@ -160,7 +160,7 @@ GRADLE_WRAPPER_JAR="$APP_HOME/gradle/wrapper/gradle-wrapper.jar"
"$JAVACMD" $JAVA_OPTS --source 11 "$APP_HOME/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java" "$GRADLE_WRAPPER_JAR"
WRAPPER_STATUS=$?
if [ "$WRAPPER_STATUS" -eq 1 ]; then
echo "ERROR: Something went wrong. Make sure you're using Java version between 17 and 21."
echo "ERROR: Something went wrong. Make sure you're using Java version of exactly 21."
exit $WRAPPER_STATUS
elif [ "$WRAPPER_STATUS" -ne 0 ]; then
exit $WRAPPER_STATUS

2
gradlew.bat vendored
View File

@ -106,7 +106,7 @@ goto fail
:failWithJvmMessage
@rem https://github.com/apache/lucene/pull/819
echo Error: Something went wrong. Make sure you're using Java version between 17 and 21.
echo Error: Something went wrong. Make sure you're using Java version of exactly 21.
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of