Skip to content

Commit 7c5e050

Browse files
jonatan-ivanovsnicoll
authored andcommitted
Upgrade to Micrometer 1.7.0-M1
See gh-25707
1 parent 7e6df7d commit 7c5e050

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ dependencies {
5555
optional("io.micrometer:micrometer-registry-signalfx")
5656
optional("io.micrometer:micrometer-registry-statsd")
5757
optional("io.micrometer:micrometer-registry-wavefront")
58+
optional("org.hibernate:hibernate-micrometer")
5859
optional("io.projectreactor.netty:reactor-netty-http")
5960
optional("io.r2dbc:r2dbc-pool")
6061
optional("io.r2dbc:r2dbc-spi")

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/orm/jpa/HibernateMetricsAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
import javax.persistence.PersistenceException;
2424

2525
import io.micrometer.core.instrument.MeterRegistry;
26-
import io.micrometer.core.instrument.binder.jpa.HibernateMetrics;
2726
import org.hibernate.SessionFactory;
27+
import org.hibernate.stat.HibernateMetrics;
2828

2929
import org.springframework.beans.factory.SmartInitializingSingleton;
3030
import org.springframework.boot.actuate.autoconfigure.metrics.MetricsAutoConfiguration;

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ bom {
11781178
]
11791179
}
11801180
}
1181-
library("Micrometer", "1.6.5") {
1181+
library("Micrometer", "1.7.0-M1") {
11821182
group("io.micrometer") {
11831183
modules = [
11841184
"micrometer-registry-stackdriver" {

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-data-jpa/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ dependencies {
1111
implementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-actuator"))
1212

1313
runtimeOnly("com.h2database:h2")
14+
runtimeOnly("org.hibernate:hibernate-micrometer")
1415

1516
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
1617
}

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-flyway/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies {
1212

1313
runtimeOnly("com.h2database:h2")
1414
runtimeOnly("org.flywaydb:flyway-core")
15+
runtimeOnly("org.hibernate:hibernate-micrometer")
1516

1617
testImplementation(project(":spring-boot-project:spring-boot-starters:spring-boot-starter-test"))
1718
}

0 commit comments

Comments
 (0)