Skip to content

Commit a9d3395

Browse files
committed
withType
1 parent ff5f251 commit a9d3395

File tree

24 files changed

+24
-35
lines changed

24 files changed

+24
-35
lines changed

instrumentation/cassandra/cassandra-4.0/javaagent/build.gradle.kts

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

2626
tasks {
27-
test {
27+
withType<Test>().configureEach {
2828
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
2929
}
3030

instrumentation/cassandra/cassandra-4.4/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies {
2727
}
2828

2929
tasks {
30-
test {
30+
withType<Test>().configureEach {
3131
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
3232
}
3333

instrumentation/cassandra/cassandra-4.4/library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies {
1212
}
1313

1414
tasks {
15-
test {
15+
withType<Test>().configureEach {
1616
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
1717
}
1818

instrumentation/couchbase/couchbase-2.0/javaagent/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@ dependencies {
3232
}
3333

3434
tasks {
35-
test {
35+
withType<Test>().configureEach {
3636
// required on jdk17
3737
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
3838
jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED")
3939
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
4040
}
4141

4242
val testStableSemconv by registering(Test::class) {
43-
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
44-
jvmArgs("--add-opens=java.base/java.lang.invoke=ALL-UNNAMED")
45-
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
4643
jvmArgs("-Dotel.semconv-stability.opt-in=database")
4744
}
4845

instrumentation/couchbase/couchbase-2.6/javaagent/build.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies {
3535
}
3636

3737
tasks {
38-
test {
38+
withType<Test>().configureEach {
3939
// TODO run tests both with and without experimental span attributes
4040
jvmArgs("-Dotel.instrumentation.couchbase.experimental-span-attributes=true")
4141

@@ -45,9 +45,6 @@ tasks {
4545
}
4646

4747
val testStableSemconv by registering(Test::class) {
48-
jvmArgs("-Dotel.instrumentation.couchbase.experimental-span-attributes=true")
49-
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
50-
jvmArgs("-XX:+IgnoreUnrecognizedVMOptions")
5148
jvmArgs("-Dotel.semconv-stability.opt-in=database")
5249
}
5350

instrumentation/couchbase/couchbase-3.1.6/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies {
3939
}
4040

4141
tasks {
42-
test {
42+
withType<Test>().configureEach {
4343
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
4444
}
4545

instrumentation/couchbase/couchbase-3.1/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies {
4040
}
4141

4242
tasks {
43-
test {
43+
withType<Test>().configureEach {
4444
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
4545
}
4646

instrumentation/couchbase/couchbase-3.2/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
}
3838

3939
tasks {
40-
test {
40+
withType<Test>().configureEach {
4141
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
4242
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
4343
}

instrumentation/influxdb-2.4/javaagent/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,13 @@ tasks {
4848
}
4949

5050
tasks {
51-
test {
51+
withType<Test>().configureEach {
5252
// we disable the okhttp instrumentation, so we don't need to assert on the okhttp spans
5353
// from the okhttp instrumentation we need OkHttp3IgnoredTypesConfigurer to fix context leaks
5454
jvmArgs("-Dotel.instrumentation.okhttp.enabled=false")
5555
}
5656

5757
val testStableSemconv by registering(Test::class) {
58-
jvmArgs("-Dotel.instrumentation.okhttp.enabled=false")
5958
jvmArgs("-Dotel.semconv-stability.opt-in=database")
6059
}
6160

instrumentation/jedis/jedis-1.4/javaagent/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ testing {
3939
}
4040

4141
tasks {
42-
test {
42+
withType<Test>().configureEach {
4343
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
4444
}
4545

0 commit comments

Comments
 (0)