You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by ch...@apache.org on 2026/08/20 07:44:08 UTC

(kafka) branch trunk updated: MINOR: Upgrade gradle to 9.7.1 (#23142)

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

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new ed86298dc7f MINOR: Upgrade gradle to 9.7.1 (#23142)
ed86298dc7f is described below

commit ed86298dc7fd68ac98be6d3fbc21b77a323301a7
Author: Serhiy Bzhezytskyy <me...@serhiy-bzhezytskyy.com>
AuthorDate: Thu Aug 20 10:44:02 2026 +0300

    MINOR: Upgrade gradle to 9.7.1 (#23142)
    
    Update Gradle from 9.6.1 to 9.7.1, including the wrapper distribution
    checksum. The wrapper JAR checksums in wrapper.gradle and gradlew are
    also updated to match the 9.7.1 release.
    
    Followed the procedure in `gradle/wrapper/README.md`:
    
    - `gradle/dependencies.gradle` -- gradle version
    - `gradle/wrapper/gradle-wrapper.properties` and `gradlew` regenerated
    with
      `./gradlew wrapper --gradle-version 9.7.1 --distribution-type bin
    --gradle-distribution-sha256-sum <checksum>`
    
    Checksum verified independently (downloaded and sha256'd
    `gradle-9.7.1-bin.zip` myself): `acd53f1e…804d20a`, matching the
    published value at https://gradle.org/release-checksums/.
    
    ## Verified locally with Gradle 9.7.1
    
    - `./gradlew --version` reports Gradle 9.7.1
    
    Compile and artifacts
    - `./gradlew compileJava compileTestJava`
    - `./gradlew jar`
    - `./gradlew srcJar`
    - `./gradlew testJar`
    - `./gradlew docsJar`
    
    Generated messages
    - `./gradlew processMessages processTestMessages`
    
    Javadoc and scaladoc
    - `./gradlew javadoc javadocJar`
    - `./gradlew scaladoc scaladocJar`
    - `./gradlew aggregatedJavadoc --no-parallel`
    
    Code quality
    - `./gradlew clients:checkstyleMain clients:checkstyleTest
    clients:spotlessCheck`
    - `./gradlew clients:spotbugsMain -x test`
    
    Tests and publishing
    - `./gradlew clients:test --tests RequestResponseTest`
    - `./gradlew -PskipSigning=true publishToMavenLocal`
    
    Same "Deprecated Gradle features... incompatible with Gradle 10" notice
    as under 9.7.0 -- pre-existing, not introduced by this bump.
    
    I did not run `releaseTarGz`, the full test suite, or the system tests
    locally; leaving those to CI.
    
    Following the `MINOR:` form used for the 9.6.1 bump in #23015, so no
    JIRA.
    
    @dejan2609 thanks for the heads-up on 9.7.1 -- bumped it in the same PR
    rather than opening a new one, since the diff shape is identical.
    
    Reviewers: Dejan Stojadinović <de...@gmail.com>, Parker Chang
     <pa...@gmail.com>, Chia-Ping Tsai <ch...@gmail.com>
    
    ---------
    
    Co-authored-by: Claude Opus 5 <no...@anthropic.com>
---
 gradle/dependencies.gradle               |  2 +-
 gradle/wrapper/gradle-wrapper.properties |  6 ++++--
 gradlew                                  | 10 +++++-----
 wrapper.gradle                           |  2 +-
 4 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle
index f38715cd218..3aeca92f891 100644
--- a/gradle/dependencies.gradle
+++ b/gradle/dependencies.gradle
@@ -59,7 +59,7 @@ versions += [
   commonsValidator: "1.10.1",
   commonsNet: "3.13.0",
   classgraph: "4.8.179",
-  gradle: "9.6.1",
+  gradle: "9.7.1",
   grgit: "5.3.3",
   httpclient: "4.5.14",
   jackson: "2.21.5",
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index da32a7e2ea3..760c45969c4 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,8 +1,10 @@
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
-distributionSha256Sum=9c0f7faeeb306cb14e4279a3e084ca6b596894089a0638e68a07c945a32c9e14
-distributionUrl=https\://services.gradle.org/distributions/gradle-9.6.1-bin.zip
+distributionSha256Sum=acd53f1edaf02f1a8ff99879f8a34b302661a057d9b063ae9e35b552f804d20a
+distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
 networkTimeout=10000
+retries=0
+retryBackOffMs=500
 validateDistributionUrl=true
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
diff --git a/gradlew b/gradlew
index 71975a2c76a..7a9e564486f 100755
--- a/gradlew
+++ b/gradlew
@@ -20,7 +20,7 @@
 
 ##############################################################################
 #
-#   Gradle start up script for POSIX generated by Gradle.
+#   gradlew start up script for POSIX generated by Gradle.
 #
 #   Important for running:
 #
@@ -29,7 +29,7 @@
 #       bash, then to run this script, type that shell name before the whole
 #       command line, like:
 #
-#           ksh Gradle
+#           ksh gradlew
 #
 #       Busybox and similar reduced shells will NOT work, because this script
 #       requires all of these POSIX shell features:
@@ -57,7 +57,7 @@
 #       Darwin, MinGW, and NonStop.
 #
 #   (3) This script is generated from the Groovy template
-#       https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+#       https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
 #       within the Gradle project.
 #
 #       You can find Gradle at https://github.com/gradle/gradle/.
@@ -201,10 +201,10 @@ fi
 
 
 # Loop in case we encounter an error.
-REQUIRED_WRAPPER_JAR_CHECKSUM="497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
+REQUIRED_WRAPPER_JAR_CHECKSUM="7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
 for attempt in 1 2 3; do
   if [ ! -e "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" ]; then
-    if ! curl -s -S --retry 3 -L -o "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" "https://raw.githubusercontent.com/gradle/gradle/v9.6.1/gradle/wrapper/gradle-wrapper.jar"; then
+    if ! curl -s -S --retry 3 -L -o "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" "https://raw.githubusercontent.com/gradle/gradle/v9.7.1/gradle/wrapper/gradle-wrapper.jar"; then
       rm -f "$APP_HOME/gradle/wrapper/gradle-wrapper.jar"
       # Pause for a bit before looping in case the server throttled us.
       sleep 5
diff --git a/wrapper.gradle b/wrapper.gradle
index 7d06703ca0b..2f7a1dc3245 100644
--- a/wrapper.gradle
+++ b/wrapper.gradle
@@ -40,7 +40,7 @@ task bootstrapWrapper() {
         // of curl (built against OpenSSL library that doesn't support TLSv1.2) would fail to
         // fetch the jar.
         // IMPORTANT: This checksum **must** be updated whenever the Gradle version changes.
-        String wrapperChecksum = "497c8c2a7e5031f6aa847f88104aa80a93532ec32ee17bdb8d1d2f67a194a9c7"
+        String wrapperChecksum = "7a9ce74cff467ca1bf60a4fcd9f05185acceda4d0f382434d393e17864262c5d"
         def wrapperJarUrl = "https://raw.githubusercontent.com/gradle/gradle/v$versions.gradle/gradle/wrapper/gradle-wrapper.jar"
 
         def bootstrapString = """