Skip to content

Commit 377371d

Browse files
committed
[SPARK-53409] Upgrade Gradle to 9.0.0
### What changes were proposed in this pull request? This PR aims to upgrade `Gradle` to 9.0.0. ### Why are the changes needed? `Gradle 9` is a new major release based on Java 17. We had better start with `Gradle 9` at `Spark K8s Operator v1.0.0`. - https://docs.gradle.org/9.0.0/release-notes.html ### Does this PR introduce _any_ user-facing change? No, this is a dev-only change. ### How was this patch tested? Pass the CIs and check the following log. ``` Welcome to Gradle 9.0.0! Here are the highlights of this release: - Configuration Cache is the recommended execution mode - Gradle requires JVM 17 or higher to run - Build scripts use Kotlin 2.2 and Groovy 4.0 - Improved Kotlin DSL script compilation avoidance ``` ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#301 from dongjoon-hyun/SPARK-53409. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 22497f9 commit 377371d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build-tools/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM gradle:8.14.3-jdk17-noble AS builder
17+
FROM gradle:9.0.0-jdk17-noble AS builder
1818

1919
WORKDIR /app
2020

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
distributionBase=GRADLE_USER_HOME
1919
distributionPath=wrapper/dists
20-
distributionSha256Sum=bd71102213493060956ec229d946beee57158dbd89d0e62b91bca0fa2c5f3531
21-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
20+
distributionSha256Sum=8fad3d78296ca518113f3d29016617c7f9367dc005f932bd9d93bf45ba46072b
21+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
2222
networkTimeout=10000
2323
validateDistributionUrl=true
2424
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ APP_BASE_NAME=${0##*/}
8989
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
9090
' "$PWD" ) || exit
9191
if [ ! -e $APP_HOME/gradle/wrapper/gradle-wrapper.jar -a "$(command -v curl)" ]; then
92-
curl -o $APP_HOME/gradle/wrapper/gradle-wrapper.jar https://raw.githubusercontent.com/gradle/gradle/v8.14.3/gradle/wrapper/gradle-wrapper.jar
92+
curl -o $APP_HOME/gradle/wrapper/gradle-wrapper.jar https://raw.githubusercontent.com/gradle/gradle/v9.0.0/gradle/wrapper/gradle-wrapper.jar
9393
fi
9494
# If the file still doesn't exist, let's try `wget` and cross our fingers
9595
if [ ! -e $APP_HOME/gradle/wrapper/gradle-wrapper.jar -a "$(command -v wget)" ]; then
96-
wget -O $APP_HOME/gradle/wrapper/gradle-wrapper.jar https://raw.githubusercontent.com/gradle/gradle/v8.14.3/gradle/wrapper/gradle-wrapper.jar
96+
wget -O $APP_HOME/gradle/wrapper/gradle-wrapper.jar https://raw.githubusercontent.com/gradle/gradle/v9.0.0/gradle/wrapper/gradle-wrapper.jar
9797
fi
9898

9999
# Use the maximum available, or set MAX_FD != -1 to use that value.

0 commit comments

Comments
 (0)