Skip to content

Commit 647a5ed

Browse files
committed
Build: Upgrade to gradle 8.8
1 parent 4bd9e64 commit 647a5ed

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

build.gradle

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ buildscript {
3838
classpath 'me.champeau.jmh:jmh-gradle-plugin:0.7.2'
3939
classpath 'gradle.plugin.io.morethan.jmhreport:gradle-jmh-report:0.9.6'
4040
classpath "com.github.alisiikh:gradle-scalastyle-plugin:3.5.0"
41-
classpath 'com.palantir.gradle.revapi:gradle-revapi:1.7.0'
41+
classpath 'io.github.nastra.gradle.revapi:gradle-revapi:1.8.1'
4242
classpath 'com.gorylenko.gradle-git-properties:gradle-git-properties:2.4.2'
4343
classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.1.0'
4444
classpath 'org.openapitools:openapi-generator-gradle-plugin:6.6.0'
@@ -139,7 +139,7 @@ subprojects {
139139
apply plugin: 'java-library'
140140

141141
if (project.name in REVAPI_PROJECTS) {
142-
apply plugin: 'com.palantir.revapi'
142+
apply plugin: 'io.github.nastra.revapi'
143143
revapi {
144144
oldGroup = project.group
145145
oldName = project.name
@@ -165,6 +165,10 @@ subprojects {
165165
rootTask.finalizedBy showDeprecationRulesOnRevApiFailure
166166
}
167167
}
168+
169+
tasks.named("revapiAnalyze").configure {
170+
dependsOn(":iceberg-common:jar")
171+
}
168172
}
169173

170174
configurations {
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
# checksum was taken from https://gradle.org/release-checksums
4-
distributionSha256Sum=e111cb9948407e26351227dabce49822fb88c37ee72f1d1582a69c68af2e702f
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionSha256Sum=f8b4f4772d302c8ff580bc40d0f56e715de69b163546944f787c87abf209c961
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
65
networkTimeout=10000
6+
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME
88
zipStorePath=wrapper/dists

gradlew

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -83,11 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
87-
88-
if [ ! -e $APP_HOME/gradle/wrapper/gradle-wrapper.jar ]; then
89-
curl -o $APP_HOME/gradle/wrapper/gradle-wrapper.jar https://raw.githubusercontent.com/gradle/gradle/v8.1.1/gradle/wrapper/gradle-wrapper.jar
90-
fi
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
9188

9289
# Use the maximum available, or set MAX_FD != -1 to use that value.
9390
MAX_FD=maximum
@@ -134,26 +131,29 @@ location of your Java installation."
134131
fi
135132
else
136133
JAVACMD=java
137-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134+
if ! command -v java >/dev/null 2>&1
135+
then
136+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
138137
139138
Please set the JAVA_HOME variable in your environment to match the
140139
location of your Java installation."
140+
fi
141141
fi
142142

143143
# Increase the maximum file descriptors if we can.
144144
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
145145
case $MAX_FD in #(
146146
max*)
147147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
148-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
149149
MAX_FD=$( ulimit -H -n ) ||
150150
warn "Could not query maximum file descriptor limit"
151151
esac
152152
case $MAX_FD in #(
153153
'' | soft) :;; #(
154154
*)
155155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
156-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
157157
ulimit -n "$MAX_FD" ||
158158
warn "Could not set maximum file descriptor limit to $MAX_FD"
159159
esac
@@ -202,11 +202,11 @@ fi
202202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
203203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
204204

205-
# Collect all arguments for the java command;
206-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
207-
# shell script including quotes and variable substitutions, so put them in
208-
# double quotes to make sure that they get re-expanded; and
209-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
210210

211211
set -- \
212212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

0 commit comments

Comments
 (0)