You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2026/09/25 07:15:50 UTC

(lucene) branch main updated: Upgrade gradle to 9.8.0. (#16711)

This is an automated email from the ASF dual-hosted git repository.

dweiss pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new b28d7320500 Upgrade gradle to 9.8.0. (#16711)
b28d7320500 is described below

commit b28d73205006a9b48a8a6e23dbd4a0f7a91da32e
Author: Dawid Weiss <da...@carrotsearch.com>
AuthorDate: Fri Sep 25 09:15:45 2026 +0200

    Upgrade gradle to 9.8.0. (#16711)
---
 gradle/libs.versions.toml                |  2 +-
 gradle/wrapper/gradle-wrapper.jar.sha256 |  2 +-
 gradle/wrapper/gradle-wrapper.properties |  4 ++--
 gradlew.bat                              | 25 ++++++++++++++-----------
 help/localSettings.md                    |  2 +-
 5 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index f5ba690c601..793fd8c2f2f 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -36,7 +36,7 @@ jts = "1.20.0"
 junit = "4.13.2"
 junit5 = "6.1.3"
 # @keep Minimum gradle version to run the build
-minGradle = "9.7.1"
+minGradle = "9.8.0"
 # @keep This is the minimum required Java version.
 minJava = "25"
 # analysis/morfologik polish support
diff --git a/gradle/wrapper/gradle-wrapper.jar.sha256 b/gradle/wrapper/gradle-wrapper.jar.sha256
index 78e8dbbd2eb..ec78dd88685 100644
--- a/gradle/wrapper/gradle-wrapper.jar.sha256
+++ b/gradle/wrapper/gradle-wrapper.jar.sha256
@@ -1 +1 @@
-7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d *gradle-wrapper.jar
+238e777fcddd7e34f9708186085def2abd6e08e658505b38718d79d74c21abd5 *gradle-wrapper.jar
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 00fba3d33c8..1eca32e7b4b 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,10 +1,10 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
+distributionSha256Sum=bafd5ce9cfaea0fbccfdc8439a1ac42fbd4cd9c89dc9a988228d8a2639a58e6c
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.0-bin.zip
 networkTimeout=10000
 retries=0
 retryBackOffMs=500
 validateDistributionUrl=true
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
diff --git a/gradlew.bat b/gradlew.bat
index 533b67f9cb0..792b1103419 100644
--- a/gradlew.bat
+++ b/gradlew.bat
@@ -45,13 +45,14 @@ set JAVA_EXE=java.exe
 %JAVA_EXE% -version >NUL 2>&1
 if %ERRORLEVEL% equ 0 goto execute
 
-echo. 1>&2
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
-echo. 1>&2
-echo Please set the JAVA_HOME variable in your environment to match the 1>&2
-echo location of your Java installation. 1>&2
+1>&2 echo.
+1>&2 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+1>&2 echo.
+1>&2 echo Please set the JAVA_HOME variable in your environment to match the
+1>&2 echo location of your Java installation.
 
 "%COMSPEC%" /c exit 1
+goto exitWithErrorLevel
 
 :findJavaFromJavaHome
 set JAVA_HOME=%JAVA_HOME:"=%
@@ -59,13 +60,14 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
 
 if exist "%JAVA_EXE%" goto execute
 
-echo. 1>&2
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
-echo. 1>&2
-echo Please set the JAVA_HOME variable in your environment to match the 1>&2
-echo location of your Java installation. 1>&2
+1>&2 echo.
+1>&2 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+1>&2 echo.
+1>&2 echo Please set the JAVA_HOME variable in your environment to match the
+1>&2 echo location of your Java installation.
 
 "%COMSPEC%" /c exit 1
+goto exitWithErrorLevel
 
 :execute
 @rem Setup the command line
@@ -133,8 +135,9 @@ goto exitWithErrorLevel
 @rem Execute Gradle
 @rem endlocal doesn't take effect until after the line is parsed and variables are expanded
 @rem which allows us to clear the local environment before executing the java command
-endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
+endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel & goto exitWithErrorLevel
 
+@rem This label must not be changed. We rely on old scripts being able to jump to this point.
 :exitWithErrorLevel
 @rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
 "%COMSPEC%" /c exit %ERRORLEVEL%
diff --git a/help/localSettings.md b/help/localSettings.md
index c6b7d3b10de..1d887e590a9 100644
--- a/help/localSettings.md
+++ b/help/localSettings.md
@@ -54,7 +54,7 @@ at the location the gradle wrapper expects for the "official" distribution.
 Local URLs work too, for example:
 
 ```bash
-LUCENE_GRADLE_DISTRIBUTION_URL=file:///path/to/gradle-9.7.1-bin.zip
+LUCENE_GRADLE_DISTRIBUTION_URL=file:///path/to/gradle-9.8.0-bin.zip
 ```
 
 Setting `LUCENE_GRADLE_VERIFY_CHECKSUMS=false` disables checksum verification in these bootstrap steps. Use this only if