Specify java 11 for gradle wrapper downloader

This commit is contained in:
Mike Drob 2020-04-02 13:09:58 -05:00
parent e25ab4204f
commit e6090792c8
2 changed files with 2 additions and 2 deletions

2
gradlew vendored
View File

@ -104,7 +104,7 @@ fi
# LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
GRADLE_WRAPPER_JAR=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
if ! $JAVACMD buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java $GRADLE_WRAPPER_JAR ; then
if ! $JAVACMD --source 11 buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java $GRADLE_WRAPPER_JAR ; then
exit $?
fi

2
gradlew.bat vendored
View File

@ -80,7 +80,7 @@ set CMD_LINE_ARGS=%*
@rem LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
set GRADLE_WRAPPER_JAR=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
"%JAVA_EXE%" buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java "%GRADLE_WRAPPER_JAR%"
"%JAVA_EXE%" --source 11 buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java "%GRADLE_WRAPPER_JAR%"
IF %ERRORLEVEL% NEQ 0 goto fail
@rem Setup the command line