Skip to content

Commit def5b78

Browse files
authored
Update gradle wrapper to 8.3 (#2140)
Removes beforeLocking hook when configuring configuration attributes. This method has been removed from Gradle 8.3 and always was internal API only. Also it should not be required in the first place in the scenarios used in this build.
1 parent edaaddf commit def5b78

File tree

6 files changed

+25
-34
lines changed

6 files changed

+25
-34
lines changed

gradle/wrapper/gradle-wrapper.jar

1.73 KB
Binary file not shown.
+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=38f66cd6eef217b4c35855bb11ea4e9fbc53594ccccb5fb82dfd317ef8c2c5a3
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
3+
distributionSha256Sum=bb09982fdf52718e4c7b25023d10df6d35a5fff969860bdf5a5bd27a3ab27a9e
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
55
networkTimeout=10000
6+
validateDistributionUrl=true
67
zipStoreBase=GRADLE_USER_HOME
78
zipStorePath=wrapper/dists

gradlew

+8-4
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ done
8585
APP_BASE_NAME=${0##*/}
8686
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90-
9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
9390

@@ -133,10 +130,13 @@ location of your Java installation."
133130
fi
134131
else
135132
JAVACMD=java
136-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
133+
if ! command -v java >/dev/null 2>&1
134+
then
135+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
137136
138137
Please set the JAVA_HOME variable in your environment to match the
139138
location of your Java installation."
139+
fi
140140
fi
141141

142142
# Increase the maximum file descriptors if we can.
@@ -197,6 +197,10 @@ if "$cygwin" || "$msys" ; then
197197
done
198198
fi
199199

200+
201+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203+
200204
# Collect all arguments for the java command;
201205
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202206
# shell script including quotes and variable substitutions, so put them in

mr/build.gradle

+6-12
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,18 @@ configurations {
2525
// This will force the MR project to require jars from upstream project dependencies, which shouldn't be a problem since
2626
// there should only be one upstream project.
2727
compileClasspath {
28-
beforeLocking {
29-
attributes {
30-
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
31-
}
28+
attributes {
29+
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
3230
}
3331
}
3432
testCompileClasspath {
35-
beforeLocking {
36-
attributes {
37-
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
38-
}
33+
attributes {
34+
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
3935
}
4036
}
4137
itestCompileClasspath {
42-
beforeLocking {
43-
attributes {
44-
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
45-
}
38+
attributes {
39+
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
4640
}
4741
}
4842
}

qa/kerberos/build.gradle

+2-4
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,8 @@ boolean localRepo = project.getProperties().containsKey("localRepo")
5252
// TODO: Clean this up when we get to variants, they should persist their classes dirs in a sane way
5353
configurations {
5454
compileClasspath {
55-
beforeLocking {
56-
attributes {
57-
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
58-
}
55+
attributes {
56+
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
5957
}
6058
}
6159
}

test/shared/build.gradle

+6-12
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,18 @@ configurations {
3636
// This will force the MR project to require jars from upstream project dependencies, which shouldn't be a problem since
3737
// there should only be one upstream project.
3838
compileClasspath {
39-
beforeLocking {
40-
attributes {
41-
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
42-
}
39+
attributes {
40+
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
4341
}
4442
}
4543
testCompileClasspath {
46-
beforeLocking {
47-
attributes {
48-
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
49-
}
44+
attributes {
45+
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
5046
}
5147
}
5248
itestCompileClasspath {
53-
beforeLocking {
54-
attributes {
55-
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
56-
}
49+
attributes {
50+
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, LibraryElements.JAR))
5751
}
5852
}
5953
}

0 commit comments

Comments
 (0)