Add odl-dropwizard-metrics 46/79146/10
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 2 Jan 2019 15:12:18 +0000 (16:12 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 4 Jan 2019 12:37:55 +0000 (13:37 +0100)
This adds dependency declaration for io.dropwizard.metrics-4.0.5
and also a basic wrapper feature, which provides core, JMX reporter,
healthcheck support and JVM metrics.

Change-Id: If0356b4d6746f95824f30d19323ca286aa7fe857
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
features/features-odlparent/pom.xml
features/odl-dropwizard-metrics/pom.xml [new file with mode: 0644]
features/odl-dropwizard-metrics/src/main/history/dependencies.xml [new file with mode: 0644]
features/pom.xml
odlparent-artifacts/pom.xml
odlparent-dependency-check/pom.xml
odlparent/pom.xml

index 3cc30a9c22a42768bb37f937dc518fafcaaf9988..f1e63fef98ee4ed463e4e2541d2059f15a1a6871 100644 (file)
             <type>xml</type>
         </dependency>
 
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>odl-dropwizard-metrics</artifactId>
+            <classifier>features</classifier>
+            <type>xml</type>
+        </dependency>
+
         <dependency>
             <groupId>${project.groupId}</groupId>
             <artifactId>odl-gson</artifactId>
diff --git a/features/odl-dropwizard-metrics/pom.xml b/features/odl-dropwizard-metrics/pom.xml
new file mode 100644 (file)
index 0000000..95eba89
--- /dev/null
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright © 2019 Pantheon Technologies, s.r.o. and others.  All rights reserved.
+
+ This program and the accompanying materials are made available under the
+ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ and is available at http://www.eclipse.org/legal/epl-v10.html
+ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.opendaylight.odlparent</groupId>
+        <artifactId>single-feature-parent</artifactId>
+        <version>4.0.8-SNAPSHOT</version>
+        <relativePath>../../single-feature-parent</relativePath>
+    </parent>
+
+    <groupId>org.opendaylight.odlparent</groupId>
+    <artifactId>odl-dropwizard-metrics</artifactId>
+    <version>4.0.8-SNAPSHOT</version>
+    <packaging>feature</packaging>
+
+    <name>OpenDaylight :: Dropwizard.io Metrics</name>
+
+    <properties>
+        <checkDependencyChange>true</checkDependencyChange>
+        <failOnDependencyChange>true</failOnDependencyChange>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>io.dropwizard.metrics</groupId>
+            <artifactId>metrics-core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.dropwizard.metrics</groupId>
+            <artifactId>metrics-healthchecks</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.dropwizard.metrics</groupId>
+            <artifactId>metrics-jmx</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>io.dropwizard.metrics</groupId>
+            <artifactId>metrics-jvm</artifactId>
+        </dependency>
+    </dependencies>
+</project>
diff --git a/features/odl-dropwizard-metrics/src/main/history/dependencies.xml b/features/odl-dropwizard-metrics/src/main/history/dependencies.xml
new file mode 100644 (file)
index 0000000..75fc028
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.5.0" name="odl-dropwizard-metrics">
+    <feature version="0.0.0">
+        <bundle>mvn:io.dropwizard.metrics/metrics-core/4.0.5</bundle>
+        <bundle>mvn:io.dropwizard.metrics/metrics-healthchecks/4.0.5</bundle>
+        <bundle>mvn:io.dropwizard.metrics/metrics-jmx/4.0.5</bundle>
+        <bundle>mvn:io.dropwizard.metrics/metrics-jvm/4.0.5</bundle>
+    </feature>
+</features>
index 4009d0410d98bb00995448e0db3fb9846b5a184e..faaddc08cdc88465da204125d6753864ccd9dd0c 100644 (file)
@@ -52,6 +52,7 @@
         <module>odl-apache-commons-net</module>
         <module>odl-apache-commons-text</module>
         <module>odl-apache-sshd</module>
+        <module>odl-dropwizard-metrics</module>
         <module>odl-gson</module>
         <module>odl-guava</module>
         <module>odl-guava-25</module>
index 6a91a3e013c46f86f72d91f28fceb304e0a21076..a74d892150a28a07a09bd642edd4605d93c26406 100644 (file)
                 <classifier>features</classifier>
                 <type>xml</type>
             </dependency>
+            <dependency>
+                <groupId>org.opendaylight.odlparent</groupId>
+                <artifactId>odl-dropwizard-metrics</artifactId>
+                <version>${project.version}</version>
+                <classifier>features</classifier>
+                <type>xml</type>
+            </dependency>
             <dependency>
                 <groupId>org.opendaylight.odlparent</groupId>
                 <artifactId>odl-gson</artifactId>
index 13612b5963ef2e90584b9276c1820c7d4f420d62..62ae2156de868da96ee6aad27c36e3bb1f6710c7 100644 (file)
             <groupId>io.aeron</groupId>
             <artifactId>aeron-driver</artifactId>
         </dependency>
+        <dependency>
+            <groupId>io.dropwizard.metrics</groupId>
+            <artifactId>metrics-bom</artifactId>
+            <type>pom</type>
+            <version>4.0.5</version>
+        </dependency>
         <dependency>
             <groupId>io.netty</groupId>
             <artifactId>netty-all</artifactId>
index 67fcad58040604d4d9529767199332a946b1f61e..838738d48d5cf04d429a82bad6609e781c395119 100644 (file)
         <type>pom</type>
       </dependency>
 
+      <!-- Dropwizard metrics -->
+      <dependency>
+        <groupId>io.dropwizard.metrics</groupId>
+        <artifactId>metrics-bom</artifactId>
+        <version>4.0.5</version>
+        <scope>import</scope>
+        <type>pom</type>
+      </dependency>
+
       <!-- JAXB for Java 11+ -->
       <!--
            FIXME: bump this to 2.3.0 once we require Java 9+