This directory contains the Gradle wrapper files for the Apache Kafka project.
When upgrading the Gradle version used by the Kafka project, update the following files in order:
-
Update Gradle version in
gradle/dependencies.gradle:gradle: "9.2.0"
-
Update wrapper JAR checksum in
wrapper.gradle:- Find the Wrapper JAR Checksum at https://gradle.org/release-checksums/
- Update the
wrapperChecksumvariable:
task bootstrapWrapper() { // ... (other code) doLast { // ... (other code) String wrapperChecksum = "<wrapper-jar-sha256-checksum>" // ... } }- Verify the wrapper JAR URL is accessible at:
https://raw.githubusercontent.com/gradle/gradle/v<gradle-version>/gradle/wrapper/gradle-wrapper.jar
-
Regenerate the
gradle/wrapper/gradle-wrapper.propertiesand the wrapper script:-
Find the Binary-only (-bin) ZIP Checksum for the binary distribution at https://gradle.org/release-checksums/
./gradlew wrapper --gradle-version <gradle-version> \ --distribution-type bin \ --gradle-distribution-sha256-sum <binary-distribution-checksum>
-
After upgrading, verify the Gradle version:
./gradlew --version