Skip to content

Commit

Permalink
Use Prometheus BOMs only in Prometheus modules
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye committed Sep 9, 2024
1 parent 6cadbde commit 3bea2a1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
4 changes: 1 addition & 3 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ def VERSIONS = [
def PLATFORM_BOMS = [
libs.reactorBom,
libs.nettyBom,
libs.junitBom,
libs.prometheusMetricsBom,
libs.prometheusSimpleClientBom
libs.junitBom
]

subprojects {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions implementations/micrometer-registry-prometheus/build.gradle
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
1 change: 1 addition & 0 deletions samples/micrometer-samples-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {

dependencies {
implementation platform(libs.reactorBom)
implementation(platform(libs.prometheusSimpleClientBom))

implementation project(':micrometer-core')
implementation project(':micrometer-observation')
Expand Down

0 comments on commit 3bea2a1

Please sign in to comment.