Skip to content

Commit 5d67753

Browse files
committed
running in latest dep doesn't work
1 parent 57e3ef9 commit 5d67753

File tree

1 file changed

+3
-6
lines changed
  • instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent

1 file changed

+3
-6
lines changed

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

+3-6
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,13 @@ if (!latestDepTest) {
4848
force("org.slf4j:slf4j-api:1.7.36")
4949
}
5050
}
51-
}
5251

53-
if (latestDepTest) {
54-
// this dependency adds the new io.micrometer.prometheusmetrics.PrometheusMeterRegistry,
55-
// not the old io.micrometer.prometheus.PrometheusMeterRegistry,
56-
// which is required in older versions of spring that we use in this test project
52+
// this dependency adds the old io.micrometer.prometheus.PrometheusMeterRegistry,
53+
// which is not supported by the latest version of spring boot
5754
tasks {
5855
val testPrometheus by registering(Test::class) {
5956
dependencies {
60-
runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.14.3")
57+
runtimeOnly("io.micrometer:micrometer-registry-prometheus:1.0.1")
6158
}
6259
}
6360

0 commit comments

Comments
 (0)