Skip to content

Commit b281add

Browse files
authored
Replace configurations .each with .configureEach (#9758)
1 parent 0d52555 commit b281add

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

dd-java-agent/instrumentation/akka/akka-actor-2.5/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ dependencies {
5959
}
6060

6161
// gradle can't downgrade the akka dependencies with `strictly`
62-
configurations.matching({ it.name.startsWith('akka23') }).each({
62+
configurations.matching({ it.name.startsWith('akka23') }).configureEach({
6363
it.resolutionStrategy {
6464
force group: 'com.typesafe.akka', name: "akka-actor_$scalaVersion", version :'2.3.16'
6565
force group: 'com.typesafe.akka', name: "akka-testkit_$scalaVersion", version :'2.3.16'

dd-java-agent/instrumentation/junit/junit-5.3/cucumber-junit-5/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies {
3131
latestDepTestImplementation group: 'io.cucumber', name: 'cucumber-junit-platform-engine', version: '+'
3232
}
3333

34-
configurations.matching({ it.name.startsWith('test') }).each({
34+
configurations.matching({ it.name.startsWith('test') }).configureEach({
3535
it.resolutionStrategy {
3636
force group: 'org.junit.platform', name: 'junit-platform-launcher', version: libs.versions.junit.platform.get()
3737
force group: 'org.junit.platform', name: 'junit-platform-suite', version: libs.versions.junit.platform.get()

dd-java-agent/instrumentation/junit/junit-5.3/spock-junit-5/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ dependencies {
2828
latestDepTestImplementation group: 'org.spockframework', name: 'spock-core', version: '2.+'
2929
}
3030

31-
configurations.matching({ it.name.startsWith('test') }).each({
31+
configurations.matching({ it.name.startsWith('test') }).configureEach({
3232
it.resolutionStrategy {
3333
force group: 'org.junit.platform', name: 'junit-platform-launcher', version: libs.versions.junit.platform.get()
3434
force group: 'org.spockframework', name: 'spock-core', version: "2.2-groovy-${spockGroovyVersion}"
3535
}
3636
})
3737

38-
configurations.matching({ it.name.startsWith('latestDepTest') }).each({
38+
configurations.matching({ it.name.startsWith('latestDepTest') }).configureEach({
3939
it.resolutionStrategy.componentSelection.all { ComponentSelection selection ->
4040
if (selection.candidate.group == 'org.spockframework' && selection.candidate.module == 'spock-core' && !selection.candidate.version.endsWith("-groovy-${spockGroovyVersion}")) {
4141
selection.reject('Spock groovy version mismatch')

dd-java-agent/instrumentation/play/play-2.6/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ dependencies {
127127
latestDepTestImplementation group: 'com.typesafe.play', name: 'play-akka-http-server_2.13', version: '2.+'
128128
}
129129

130-
configurations.matching({ it.name.startsWith('latestDepTest') }).each({
130+
configurations.matching({ it.name.startsWith('latestDepTest') }).configureEach({
131131
it.resolutionStrategy {
132132
// logback-classic 1.4.11 doesn't like being loaded in the bootstrap classloader (NPE)
133133
force group: 'ch.qos.logback', name: 'logback-classic', version: '1.4.5'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies {
3535
latestDepTestImplementation group: 'org.seleniumhq.selenium', name: 'htmlunit-driver', version: '+'
3636
}
3737

38-
configurations.matching({ it.name.startsWith('test') || it.name.startsWith('latestDepTest') }).each({
38+
configurations.matching({ it.name.startsWith('test') || it.name.startsWith('latestDepTest') }).configureEach({
3939
it.resolutionStrategy {
4040
// There is a conflict between the version used by HTMLUnit and the one used by :dd-java-agent:testing
4141
force group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.4.50.v20221201'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515

1616
// gradle can't downgrade the testng dependencies with `strictly` and IntelliJ IDEA reports
1717
// an error when importing the project, so pretty please DON'T change this back to strictly
18-
configurations.matching({ it.name.startsWith('test') }).each({
18+
configurations.matching({ it.name.startsWith('test') }).configureEach({
1919
it.resolutionStrategy {
2020
force group: 'org.testng', name: 'testng', version: '6.4'
2121
}

dd-java-agent/instrumentation/testng/testng-6/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies {
2424

2525
// gradle can't downgrade the testng dependencies with `strictly`
2626
// and IntelliJ IDEA reports an error when importing the project
27-
configurations.matching({ it.name.startsWith('test') }).each({
27+
configurations.matching({ it.name.startsWith('test') }).configureEach({
2828
it.resolutionStrategy {
2929
force group: 'org.testng', name: 'testng', version: '6.4'
3030
}

dd-java-agent/instrumentation/testng/testng-7/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ dependencies {
4242

4343
// gradle can't downgrade the testng dependencies with `strictly`
4444
// and IntelliJ IDEA reports an error when importing the project
45-
configurations.matching({ it.name.startsWith('test') }).each({
45+
configurations.matching({ it.name.startsWith('test') }).configureEach({
4646
it.resolutionStrategy {
4747
force group: 'org.testng', name: 'testng', version: '7.0.0'
4848
}

0 commit comments

Comments
 (0)