Skip to content

Commit 0dc90ef

Browse files
committed
Upgrade to gradle v8.5
1 parent 7b14cc7 commit 0dc90ef

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ variables:
2424
BUILD_JOB_NAME: "build"
2525
DEPENDENCY_CACHE_POLICY: pull
2626
BUILD_CACHE_POLICY: pull
27-
GRADLE_VERSION: "8.4" # must match gradle-wrapper.properties
27+
GRADLE_VERSION: "8.5" # must match gradle-wrapper.properties
2828
MAVEN_REPOSITORY_PROXY: "http://artifactual.artifactual.all-clusters.local-dc.fabric.dog:8081/repository/maven-central/"
2929
GRADLE_PLUGIN_PROXY: "http://artifactual.artifactual.all-clusters.local-dc.fabric.dog:8081/repository/gradle-plugin-portal-proxy/"
3030
JAVA_BUILD_IMAGE_VERSION: "v25.05"

dd-java-agent/instrumentation/scala/build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@ final testTasks = scalaVersions.collect { scalaLibrary ->
2727
def (major, minor) = version.split('_').collect(Integer.&valueOf)
2828
final javaConcatenation = major > 2 || minor > 11 // after 2.11 scala uses java.lang.StringBuilder to perform concatenation
2929

30-
final configuration = configurations.create("${version}Implementation")
30+
final configuration = configurations.create("${version}Implementation") {
31+
canBeConsumed = false
32+
canBeResolved = false
33+
canBeDeclared = true
34+
}
35+
final classPathConfiguration = configurations.create("${version}CompileClasspath") {
36+
canBeConsumed = false
37+
canBeResolved = true
38+
canBeDeclared = false
39+
extendsFrom(configuration)
40+
}
3141

3242
dependencies { handler ->
3343
handler.add(configuration.name, scalaLibrary)
@@ -40,7 +50,7 @@ final testTasks = scalaVersions.collect { scalaLibrary ->
4050
final customSourceSet = sourceSets.create("${version}") {
4151
scala {
4252
srcDirs = ['src/test/scala']
43-
compileClasspath += configuration
53+
compileClasspath += classPathConfiguration
4454
}
4555
}
4656

@@ -49,7 +59,7 @@ final testTasks = scalaVersions.collect { scalaLibrary ->
4959
.filter { !it.toString().contains('scala-library') } // exclude default scala-library
5060
.minus(files(sourceSets.test.scala.classesDirectory)) // exclude default /build/classes/scala/test folder
5161
.plus(customSourceSet.output.classesDirs) // add /build/classes/scala/${version} folder
52-
.plus(configuration) // add new scala-library configuration
62+
.plus(classPathConfiguration) // add new scala-library configuration
5363
systemProperty('uses.java.concat', javaConcatenation)
5464
dependsOn(tasks.named("compile${version.capitalize()}Scala"))
5565
group = 'verification'

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
# Please note that the version specific cache directory in
4-
# .gitlab-ci.yml needs to match this version.
5-
distributionSha256Sum=f2b9ed0faf8472cbe469255ae6c86eddb77076c75191741b4a462f33128dd419
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
3+
distributionSha256Sum=c16d517b50dd28b3f5838f0e844b7520b8f1eb610f2f29de7e4e04a1b7c9c79b
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
75
networkTimeout=10000
86
validateDistributionUrl=true
97
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,15 @@ 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)