From 86ca62e7f704cb6544695aad7790ebf787855d71 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 25 Sep 2018 12:24:24 +0200 Subject: [PATCH] Bump to Dropwizard Metrics 4.0.3 This also cleans up some duplicate dependencies. Release notes: * 4.0.0: https://metrics.dropwizard.io/4.0.0/about/release-notes.html * 4.0.1: https://github.com/dropwizard/metrics/releases/tag/v4.0.1 * 4.0.2: https://github.com/dropwizard/metrics/releases/tag/v4.0.1 * 4.0.3: none available, see https://github.com/dropwizard/metrics/compare/v4.0.2...v4.0.3 Change-Id: I29050a587aebafcf0d169425242b6281dbb43519 Signed-off-by: Stephen Kitt --- features/mdsal/odl-mdsal-clustering-commons/pom.xml | 5 ----- opendaylight/md-sal/sal-clustering-commons/pom.xml | 9 +++++++-- .../controller/cluster/reporting/MetricsReporter.java | 2 +- opendaylight/md-sal/sal-remoterpc-connector/pom.xml | 10 ---------- 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/features/mdsal/odl-mdsal-clustering-commons/pom.xml b/features/mdsal/odl-mdsal-clustering-commons/pom.xml index d798bc22c6..df99340aef 100644 --- a/features/mdsal/odl-mdsal-clustering-commons/pom.xml +++ b/features/mdsal/odl-mdsal-clustering-commons/pom.xml @@ -57,11 +57,6 @@ sal-akka-raft ${project.version} - - io.dropwizard.metrics - metrics-core - 3.1.2 - diff --git a/opendaylight/md-sal/sal-clustering-commons/pom.xml b/opendaylight/md-sal/sal-clustering-commons/pom.xml index d3f90420cf..fd62d9e43e 100644 --- a/opendaylight/md-sal/sal-clustering-commons/pom.xml +++ b/opendaylight/md-sal/sal-clustering-commons/pom.xml @@ -94,12 +94,17 @@ io.dropwizard.metrics metrics-core - 3.1.2 + 4.0.3 io.dropwizard.metrics metrics-graphite - 3.1.2 + 4.0.3 + + + io.dropwizard.metrics + metrics-jmx + 4.0.3 diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/reporting/MetricsReporter.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/reporting/MetricsReporter.java index e815187d59..a488342aba 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/reporting/MetricsReporter.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/reporting/MetricsReporter.java @@ -7,8 +7,8 @@ */ package org.opendaylight.controller.cluster.reporting; -import com.codahale.metrics.JmxReporter; import com.codahale.metrics.MetricRegistry; +import com.codahale.metrics.jmx.JmxReporter; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; diff --git a/opendaylight/md-sal/sal-remoterpc-connector/pom.xml b/opendaylight/md-sal/sal-remoterpc-connector/pom.xml index 27390ae529..4cfeda5f97 100644 --- a/opendaylight/md-sal/sal-remoterpc-connector/pom.xml +++ b/opendaylight/md-sal/sal-remoterpc-connector/pom.xml @@ -93,16 +93,6 @@ org.scala-lang scala-library - - io.dropwizard.metrics - metrics-core - 3.1.2 - - - io.dropwizard.metrics - metrics-graphite - 3.1.2 - org.mockito -- 2.36.6