File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
instrumentation/spring/spring-boot-actuator-autoconfigure-2.0/javaagent Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,19 @@ if (!latestDepTest) {
5050 }
5151}
5252
53- tasks {
54- val testPrometheus by registering(Test ::class ) {
55- dependencies {
56- runtimeOnly(" io.micrometer:micrometer-registry-prometheus:1.14.3" )
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
57+ tasks {
58+ val testPrometheus by registering(Test ::class ) {
59+ dependencies {
60+ runtimeOnly(" io.micrometer:micrometer-registry-prometheus:1.14.3" )
61+ }
5762 }
58- }
5963
60- check {
61- dependsOn(testPrometheus)
64+ check {
65+ dependsOn(testPrometheus)
66+ }
6267 }
6368}
You can’t perform that action at this time.
0 commit comments