Skip to content

Commit a2161c8

Browse files
committed
last 3
1 parent 9536144 commit a2161c8

File tree

3 files changed

+28
-52
lines changed

3 files changed

+28
-52
lines changed

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

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,18 @@ dependencies {
1111
testImplementation(project(":instrumentation:cassandra:cassandra-4.4:testing"))
1212
}
1313

14-
testing {
15-
suites {
16-
val testStableSemconv by registering(JvmTestSuite::class) {
17-
targets {
18-
all {
19-
testTask.configure {
20-
jvmArgs("-Dotel.semconv-stability.opt-in=database")
21-
}
22-
}
23-
}
24-
}
25-
}
26-
}
27-
2814
tasks {
2915
withType<Test>().configureEach {
3016
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
3117
}
3218

19+
val testStableSemconv by registering(Test::class) {
20+
testClassesDirs = sourceSets.test.get().output.classesDirs
21+
classpath = sourceSets.test.get().runtimeClasspath
22+
jvmArgs("-Dotel.semconv-stability.opt-in=database")
23+
}
24+
3325
check {
34-
dependsOn(testing.suites)
26+
dependsOn(testStableSemconv)
3527
}
36-
}
28+
}

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

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,18 @@ dependencies {
3939
latestDepTestLibrary("com.couchbase.client:java-client:3.1.5") // see couchbase-3.1.6 module
4040
}
4141

42-
testing {
43-
suites {
44-
val testStableSemconv by registering(JvmTestSuite::class) {
45-
targets {
46-
all {
47-
testTask.configure {
48-
jvmArgs("-Dotel.semconv-stability.opt-in=database")
49-
}
50-
}
51-
}
52-
}
53-
}
54-
}
55-
5642
tasks {
5743
withType<Test>().configureEach {
5844
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
5945
}
6046

47+
val testStableSemconv by registering(Test::class) {
48+
testClassesDirs = sourceSets.test.get().output.classesDirs
49+
classpath = sourceSets.test.get().runtimeClasspath
50+
jvmArgs("-Dotel.semconv-stability.opt-in=database")
51+
}
52+
6153
check {
62-
dependsOn(testing.suites)
54+
dependsOn(testStableSemconv)
6355
}
64-
}
56+
}

instrumentation/kafka/kafka-clients/kafka-clients-2.6/library/build.gradle.kts

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,22 @@ dependencies {
1616
testAnnotationProcessor("com.google.auto.value:auto-value")
1717
}
1818

19-
testing {
20-
suites {
21-
val testReceiveSpansDisabled by registering(JvmTestSuite::class) {
22-
targets {
23-
all {
24-
testTask.configure {
25-
filter {
26-
includeTestsMatching("InterceptorsSuppressReceiveSpansTest")
27-
includeTestsMatching("WrapperSuppressReceiveSpansTest")
28-
}
29-
include("**/InterceptorsSuppressReceiveSpansTest.*", "**/WrapperSuppressReceiveSpansTest.*")
30-
}
31-
}
32-
}
33-
}
34-
}
35-
}
36-
3719
tasks {
3820
withType<Test>().configureEach {
3921
usesService(gradle.sharedServices.registrations["testcontainersBuildService"].service)
4022
systemProperty("testLatestDeps", findProperty("testLatestDeps") as Boolean)
4123
}
4224

25+
val testReceiveSpansDisabled by registering(Test::class) {
26+
testClassesDirs = sourceSets.test.get().output.classesDirs
27+
classpath = sourceSets.test.get().runtimeClasspath
28+
filter {
29+
includeTestsMatching("InterceptorsSuppressReceiveSpansTest")
30+
includeTestsMatching("WrapperSuppressReceiveSpansTest")
31+
}
32+
include("**/InterceptorsSuppressReceiveSpansTest.*", "**/WrapperSuppressReceiveSpansTest.*")
33+
}
34+
4335
test {
4436
filter {
4537
excludeTestsMatching("InterceptorsSuppressReceiveSpansTest")
@@ -50,6 +42,6 @@ tasks {
5042
}
5143

5244
check {
53-
dependsOn(testing.suites)
45+
dependsOn(testReceiveSpansDisabled)
5446
}
55-
}
47+
}

0 commit comments

Comments
 (0)