Skip to content

Commit e0e55bf

Browse files
committed
fix dependency
1 parent 84abdcc commit e0e55bf

File tree

1 file changed

+7
-11
lines changed
  • instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent

1 file changed

+7
-11
lines changed

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

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

25-
testing {
26-
suites {
27-
val testPrometheus by registering(JvmTestSuite::class) {
28-
dependencies {
29-
runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3")
30-
}
31-
}
32-
}
33-
}
34-
3525
tasks.withType<Test>().configureEach {
3626
// required on jdk17
3727
jvmArgs("--add-opens=java.base/java.lang=ALL-UNNAMED")
@@ -61,7 +51,13 @@ if (!latestDepTest) {
6151
}
6252

6353
tasks {
54+
val testPrometheus by registering(Test::class) {
55+
dependencies {
56+
runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3")
57+
}
58+
}
59+
6460
check {
65-
dependsOn(testing.suites)
61+
dependsOn(testPrometheus)
6662
}
6763
}

0 commit comments

Comments
 (0)