diff --git a/dependencies.gradle b/dependencies.gradle index bfae438742..f9e2fc8a3b 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -80,9 +80,7 @@ def VERSIONS = [ def PLATFORM_BOMS = [ libs.reactorBom, libs.nettyBom, - libs.junitBom, - libs.prometheusMetricsBom, - libs.prometheusSimpleClientBom + libs.junitBom ] subprojects { diff --git a/implementations/micrometer-registry-prometheus-simpleclient/build.gradle b/implementations/micrometer-registry-prometheus-simpleclient/build.gradle index a535febef0..4180412f3c 100644 --- a/implementations/micrometer-registry-prometheus-simpleclient/build.gradle +++ b/implementations/micrometer-registry-prometheus-simpleclient/build.gradle @@ -1,6 +1,8 @@ description = 'MeterRegistry implementation for Prometheus using io.prometheus:simpleclient_common. This module is deprecated in favor of io.micrometer:micrometer-registry-prometheus that uses io.prometheus:prometheus-metrics-core.' dependencies { + api(platform(libs.prometheusSimpleClientBom)) + api project(':micrometer-core') api libs.prometheusSimpleClient diff --git a/implementations/micrometer-registry-prometheus/build.gradle b/implementations/micrometer-registry-prometheus/build.gradle index 6b2eeb4cee..cad117908b 100644 --- a/implementations/micrometer-registry-prometheus/build.gradle +++ b/implementations/micrometer-registry-prometheus/build.gradle @@ -1,6 +1,8 @@ description = 'MeterRegistry implementation for Prometheus using io.prometheus:prometheus-metrics-core. If you have compatibility issues with this module, you can go back to io.micrometer:micrometer-registry-prometheus-simpleclient that uses io.prometheus:simpleclient_common.' dependencies { + api(platform(libs.prometheusMetricsBom)) + api project(':micrometer-core') api(libs.prometheusMetrics) { diff --git a/samples/micrometer-samples-core/build.gradle b/samples/micrometer-samples-core/build.gradle index 07edfe52e9..60c4a9e44b 100644 --- a/samples/micrometer-samples-core/build.gradle +++ b/samples/micrometer-samples-core/build.gradle @@ -4,6 +4,7 @@ plugins { dependencies { implementation platform(libs.reactorBom) + implementation(platform(libs.prometheusSimpleClientBom)) implementation project(':micrometer-core') implementation project(':micrometer-observation')