From e6090792c86bb4273639f1f61f07160ad79146ff Mon Sep 17 00:00:00 2001 From: Mike Drob Date: Thu, 2 Apr 2020 13:09:58 -0500 Subject: [PATCH] Specify java 11 for gradle wrapper downloader --- gradlew | 2 +- gradlew.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradlew b/gradlew index 2d0bbb3a428..6c721242608 100755 --- a/gradlew +++ b/gradlew @@ -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 diff --git a/gradlew.bat b/gradlew.bat index 90faafb6b98..bb3f631d9ca 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -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