File tree Expand file tree Collapse file tree 6 files changed +11
-7
lines changed
main/java/io/micrometer/prometheus/rsocket/autoconfigure
test/java/io/micrometer/prometheus/rsocket/autoconfigure Expand file tree Collapse file tree 6 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ dependencies {
1313 api ' io.micrometer:micrometer-registry-prometheus:1.13.+'
1414 implementation ' org.xerial.snappy:snappy-java:latest.release'
1515
16- testImplementation(platform(' org.junit:junit-bom:5.12 .1' ))
16+ testImplementation(platform(' org.junit:junit-bom:6.0 .1' ))
1717
1818 testImplementation ' ch.qos.logback:logback-classic:1.4.+'
1919 testImplementation ' org.junit.jupiter:junit-jupiter'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.springframework.boot.gradle.plugin.SpringBootPlugin
22
33plugins {
44 id ' java-library'
5- id ' org.springframework.boot' version ' 3.4 .0' apply false
5+ id ' org.springframework.boot' version ' 4.0 .0' apply false
66}
77
88apply plugin : ' io.spring.dependency-management'
Original file line number Diff line number Diff line change 11plugins {
2- id ' org.springframework.boot' version ' 3.4 .0'
2+ id ' org.springframework.boot' version ' 4.0 .0'
33}
44
55apply plugin : ' io.spring.dependency-management'
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import org.springframework.boot.gradle.plugin.SpringBootPlugin
22
33plugins {
44 id ' java-library'
5- id ' org.springframework.boot' version ' 3.4 .0' apply false
5+ id ' org.springframework.boot' version ' 4.0 .0' apply false
66}
77
88apply plugin : ' io.spring.dependency-management'
@@ -22,6 +22,7 @@ dependencies {
2222
2323 implementation ' org.springframework.boot:spring-boot-actuator-autoconfigure'
2424 implementation ' org.springframework.boot:spring-boot-autoconfigure'
25+ implementation ' org.springframework.boot:spring-boot-starter-micrometer-metrics'
2526 implementation project(' :prometheus-rsocket-client' )
2627 implementation project(' :prometheus-rsocket-proxy-server' )
2728
@@ -32,9 +33,12 @@ dependencies {
3233 // to validate auto-completion on configuration properties
3334 annotationProcessor ' org.springframework.boot:spring-boot-configuration-processor'
3435
36+ testRuntimeOnly " org.junit.platform:junit-platform-launcher"
37+
3538 testImplementation ' org.springframework.boot:spring-boot-starter-test'
3639 testImplementation ' io.projectreactor:reactor-test'
3740 testImplementation ' io.micrometer:micrometer-registry-prometheus'
41+ testImplementation ' org.springframework.boot:spring-boot-starter-micrometer-metrics-test'
3842}
3943
4044test {
Original file line number Diff line number Diff line change 1818
1919import io .micrometer .prometheus .rsocket .PrometheusRSocketClient ;
2020import io .micrometer .prometheusmetrics .PrometheusMeterRegistry ;
21- import org .springframework .boot .actuate .autoconfigure .metrics .export .prometheus .PrometheusMetricsExportAutoConfiguration ;
2221import org .springframework .boot .autoconfigure .AutoConfiguration ;
2322import org .springframework .boot .autoconfigure .AutoConfigureAfter ;
2423import org .springframework .boot .autoconfigure .condition .ConditionalOnBean ;
2524import org .springframework .boot .autoconfigure .condition .ConditionalOnMissingBean ;
2625import org .springframework .boot .autoconfigure .condition .ConditionalOnProperty ;
2726import org .springframework .boot .context .properties .EnableConfigurationProperties ;
27+ import org .springframework .boot .micrometer .metrics .autoconfigure .export .prometheus .PrometheusMetricsExportAutoConfiguration ;
2828import org .springframework .context .annotation .Bean ;
2929import reactor .util .retry .Retry ;
3030
Original file line number Diff line number Diff line change 2525import io .rsocket .transport .netty .server .TcpServerTransport ;
2626import io .rsocket .transport .netty .server .WebsocketServerTransport ;
2727import org .junit .jupiter .api .Test ;
28- import org .springframework .boot .actuate .autoconfigure .metrics .MetricsAutoConfiguration ;
29- import org .springframework .boot .actuate .autoconfigure .metrics .export .prometheus .PrometheusMetricsExportAutoConfiguration ;
3028import org .springframework .boot .autoconfigure .AutoConfigurations ;
29+ import org .springframework .boot .micrometer .metrics .autoconfigure .MetricsAutoConfiguration ;
30+ import org .springframework .boot .micrometer .metrics .autoconfigure .export .prometheus .PrometheusMetricsExportAutoConfiguration ;
3131import org .springframework .boot .test .context .runner .ApplicationContextRunner ;
3232import org .springframework .test .util .TestSocketUtils ;
3333import reactor .core .publisher .Mono ;
You can’t perform that action at this time.
0 commit comments