This is an automated email from the ASF dual-hosted git repository.
dragonyliu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis-thirdparty.git
The following commit(s) were added to refs/heads/master by this push:
new 722c122 RATIS-1595. Shade dropwizard 4.x in ratis-thirdparty. (#34)
722c122 is described below
commit 722c122d777e2b3e6a05e69afe59aa9f5a490bd3
Author: Tsz-Wo Nicholas Sze <[email protected]>
AuthorDate: Thu Jun 23 19:22:17 2022 -0700
RATIS-1595. Shade dropwizard 4.x in ratis-thirdparty. (#34)
---
misc/pom.xml | 26 ++++++++++++++++++++++++++
pom.xml | 24 ++++++++++++++++++++++++
2 files changed, 50 insertions(+)
diff --git a/misc/pom.xml b/misc/pom.xml
index e7ff085..ab30d95 100644
--- a/misc/pom.xml
+++ b/misc/pom.xml
@@ -84,6 +84,23 @@
<groupId>io.opencensus</groupId>
<artifactId>opencensus-contrib-grpc-metrics</artifactId>
</dependency>
+
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-jvm</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-jmx</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-ganglia</artifactId>
+ </dependency>
</dependencies>
<build>
@@ -164,6 +181,15 @@
<pattern>org.checkerframework</pattern>
<shadedPattern>${ratis.thirdparty.shaded.prefix}.org.checkerframework</shadedPattern>
</relocation>
+
+ <relocation>
+ <pattern>com.codahale.metrics</pattern>
+
<shadedPattern>${ratis.thirdparty.shaded.prefix}.com.codahale.metrics</shadedPattern>
+ </relocation>
+ <relocation>
+ <pattern>info.ganglia</pattern>
+
<shadedPattern>${ratis.thirdparty.shaded.prefix}.info.ganglia</shadedPattern>
+ </relocation>
</relocations>
<filters>
<!-- Filter unshaded netty_tcnative libs -->
diff --git a/pom.xml b/pom.xml
index e6ae68e..9fd01a2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -73,6 +73,9 @@
<shaded.grpc.version>1.44.0</shaded.grpc.version>
<!--Version of Netty to be shaded -->
<shaded.netty.version>4.1.77.Final</shaded.netty.version>
+ <!--Version of dropwizard to be shaded -->
+ <shaded.dropwizard.version>4.2.9</shaded.dropwizard.version>
+
<shaded.dropwizard.ganglia.version>3.2.6</shaded.dropwizard.ganglia.version>
<!-- third party library versions -->
<commons-lang3.version>3.8.1</commons-lang3.version>
@@ -146,6 +149,27 @@
<artifactId>opencensus-contrib-grpc-metrics</artifactId>
<version>${io.opencensus.version}</version>
</dependency>
+
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-core</artifactId>
+ <version>${shaded.dropwizard.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-jvm</artifactId>
+ <version>${shaded.dropwizard.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-jmx</artifactId>
+ <version>${shaded.dropwizard.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.dropwizard.metrics</groupId>
+ <artifactId>metrics-ganglia</artifactId>
+ <version>${shaded.dropwizard.ganglia.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>