Skip to content

Commit b592d63

Browse files
committed
fix annotation
1 parent b9a2ab1 commit b592d63

File tree

1 file changed

+12
-8
lines changed
  • instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent

1 file changed

+12
-8
lines changed

instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent/build.gradle.kts

+12-8
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ dependencies {
2222
latestDepTestLibrary("ch.qos.logback:logback-classic:+")
2323
}
2424

25-
tasks {
26-
val testPrometheus by registering(Test::class) {
27-
dependencies {
28-
runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3")
25+
testing {
26+
suites {
27+
val testPrometheus by registering(JvmTestSuite::class) {
28+
dependencies {
29+
runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3")
30+
}
2931
}
3032
}
31-
32-
check {
33-
dependsOn(testPrometheus)
34-
}
3533
}
3634

3735
tasks.withType<Test>().configureEach {
@@ -61,3 +59,9 @@ if (!latestDepTest) {
6159
}
6260
}
6361
}
62+
63+
tasks {
64+
check {
65+
dependsOn(testing.suites)
66+
}
67+
}

0 commit comments

Comments
 (0)