<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2018 Red Hat, Inc.
  ~
  ~  All rights reserved. This program and the accompanying materials
  ~  are made available under the terms of the Eclipse Public License v1.0
  ~  and Apache License v2.0 which accompanies this distribution.
  ~
  ~  The Eclipse Public License is available at
  ~  http://www.eclipse.org/legal/epl-v10.html
  ~
  ~  The Apache License v2.0 is available at
  ~  http://www.opensource.org/licenses/apache2.0.php
  ~
  ~  You may elect to redistribute this code under either of these licenses.
  --><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>io.vertx</groupId>
            
        <artifactId>vertx-ext-parent</artifactId>
            
        <version>38</version>
          
    </parent>
      
    <artifactId>vertx-micrometer-metrics</artifactId>
      
    <version>3.9.11</version>
      
    <name>Vert.x metrics implementation for Micrometer.io</name>
      
    <scm>
            
        <connection>scm:git:ssh://github.com/vert-x3/vertx-micrometer-metrics</connection>
            
        <developerConnection>scm:git:ssh://github.com/vert-x3/vertx-micrometer-metrics</developerConnection>
            
        <url>https://github.com/vert-x3/vertx-micrometer-metrics</url>
          
    </scm>
      
    <properties>
            
        <stack.version>3.9.11</stack.version>
            
        <assertj.version>3.9.0</assertj.version>
            
        <junit.version>4.13.1</junit.version>
            
        <maven-failsafe-plugin.version>2.18.1</maven-failsafe-plugin.version>
            
        <micrometer.version>1.1.0</micrometer.version>
          
    </properties>
      
    <dependencyManagement>
            
        <dependencies>
                  
            <dependency>
                        
                <groupId>io.vertx</groupId>
                        
                <artifactId>vertx-dependencies</artifactId>
                        
                <version>${stack.version}</version>
                        
                <type>pom</type>
                        
                <scope>import</scope>
                      
            </dependency>
                
        </dependencies>
          
    </dependencyManagement>
      
    <dependencies>
            
        <dependency>
                  
            <groupId>io.micrometer</groupId>
                  
            <artifactId>micrometer-core</artifactId>
                  
            <version>${micrometer.version}</version>
                  
            <exclusions>
                        
                <exclusion>
                              
                    <groupId>org.hdrhistogram</groupId>
                              
                    <artifactId>HdrHistogram</artifactId>
                            
                </exclusion>
                      
            </exclusions>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.hdrhistogram</groupId>
                  
            <artifactId>HdrHistogram</artifactId>
                  
            <version>2.1.10</version>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.micrometer</groupId>
                  
            <artifactId>micrometer-registry-prometheus</artifactId>
                  
            <version>${micrometer.version}</version>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.micrometer</groupId>
                  
            <artifactId>micrometer-registry-influx</artifactId>
                  
            <version>${micrometer.version}</version>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.micrometer</groupId>
                  
            <artifactId>micrometer-registry-jmx</artifactId>
                  
            <version>${micrometer.version}</version>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.micrometer</groupId>
                  
            <artifactId>micrometer-registry-graphite</artifactId>
                  
            <version>${micrometer.version}</version>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-web</artifactId>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-core</artifactId>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-codegen</artifactId>
                  
            <optional>true</optional>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-docgen</artifactId>
                  
            <optional>true</optional>
                
        </dependency>
            
        <!-- scope test -->
            
        <dependency>
                  
            <groupId>junit</groupId>
                  
            <artifactId>junit</artifactId>
                  
            <version>${junit.version}</version>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>org.assertj</groupId>
                  
            <artifactId>assertj-core</artifactId>
                  
            <version>${assertj.version}</version>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <groupId>io.vertx</groupId>
                  
            <artifactId>vertx-unit</artifactId>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <!-- for micrometer influx registry -->
                  
            <groupId>org.slf4j</groupId>
                  
            <artifactId>slf4j-simple</artifactId>
                  
            <version>1.7.25</version>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <!-- Test dependency is for Unix socket test (linux) -->
                  
            <groupId>io.netty</groupId>
                  
            <artifactId>netty-transport-native-epoll</artifactId>
                  
            <version>4.1.51.Final</version>
                  
            <classifier>linux-x86_64</classifier>
                  
            <scope>test</scope>
                
        </dependency>
            
        <dependency>
                  
            <!-- Test dependency is for Unix socket test (bsd/macos) -->
                  
            <groupId>io.netty</groupId>
                  
            <artifactId>netty-transport-native-kqueue</artifactId>
                  
            <version>4.1.51.Final</version>
                  
            <classifier>osx-x86_64</classifier>
                  
            <scope>test</scope>
                
        </dependency>
          
    </dependencies>
      
    <build>
            
        <plugins>
                  
            <plugin>
                        
                <groupId>org.apache.maven.plugins</groupId>
                        
                <artifactId>maven-surefire-plugin</artifactId>
                        
                <configuration>
                              
                    <excludes>
                                    
                        <exclude>**/*ITest*</exclude>
                                  
                    </excludes>
                            
                </configuration>
                      
            </plugin>
                  
            <plugin>
                        
                <groupId>org.apache.maven.plugins</groupId>
                        
                <artifactId>maven-failsafe-plugin</artifactId>
                        
                <version>${maven-failsafe-plugin.version}</version>
                        
                <configuration>
                              
                    <includes>
                                    
                        <include>**/*ITest*</include>
                                  
                    </includes>
                              
                    <systemPropertyVariables>
                                    
                        <java.util.logging.config.file>${project.basedir}/log-test.properties</java.util.logging.config.file>
                                  
                    </systemPropertyVariables>
                            
                </configuration>
                        
                <executions>
                              
                    <execution>
                                    
                        <goals>
                                          
                            <goal>integration-test</goal>
                                          
                            <goal>verify</goal>
                                        
                        </goals>
                                  
                    </execution>
                            
                </executions>
                      
            </plugin>
                  
            <plugin>
                        
                <artifactId>maven-jar-plugin</artifactId>
                        
                <executions>
                              
                    <execution>
                                    
                        <id>default-jar</id>
                                    
                        <configuration>
                                          
                            <archive>
                                                
                                <!-- Generate a jar INDEX.LIST -->
                                                
                                <index>true</index>
                                                
                                <!-- A manifest containing the OSGi metadata has been generated using the maven-bundle-plugin -->
                                                
                                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                                                
                                <!-- Add the Maven coordinates in the manifest -->
                                                
                                <manifestEntries>
                                                      
                                    <Maven-Group-Id>${project.groupId}</Maven-Group-Id>
                                                      
                                    <Maven-Artifact-Id>${project.artifactId}</Maven-Artifact-Id>
                                                      
                                    <Maven-Version>${project.version}</Maven-Version>
                                                    
                                </manifestEntries>
                                              
                            </archive>
                                          
                            <!-- Remove examples and docoverride -->
                                          
                            <excludes>
                                                
                                <exclude>/examples/**</exclude>
                                              
                            </excludes>
                                        
                        </configuration>
                                  
                    </execution>
                            
                </executions>
                      
            </plugin>
                  
            <plugin>
                        
                <groupId>biz.aQute.bnd</groupId>
                        
                <artifactId>bnd-maven-plugin</artifactId>
                        
                <version>3.2.0</version>
                        
                <executions>
                              
                    <execution>
                                    
                        <id>default-bnd-process</id>
                                    
                        <goals>
                                          
                            <goal>bnd-process</goal>
                                        
                        </goals>
                                  
                    </execution>
                            
                </executions>
                        
                <configuration>
                              
                    <bnd><![CDATA[
          Import-Package: \
            io.vertx.codegen.annotations;resolution:=optional,\
            *;resolution:=optional
          Require-Capability: osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"; resolution:="optional"
          Provide-Capability: osgi.serviceloader; osgi.serviceloader=io.vertx.core.spi.VertxMetricsFactory
          -exportcontents: !*impl*, !examples, *
          ]]></bnd>
                            
                </configuration>
                      
            </plugin>
                
        </plugins>
          
    </build>
      
    <profiles>
            
        <profile>
                  
            <id>coverage</id>
                  
            <build>
                        
                <plugins>
                              
                    <plugin>
                                    
                        <groupId>org.apache.maven.plugins</groupId>
                                    
                        <artifactId>maven-failsafe-plugin</artifactId>
                                    
                        <version>${maven-failsafe-plugin.version}</version>
                                    
                        <configuration>
                                          
                            <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests>
                                          
                            <includes>
                                                
                                <include>**/*ITest*</include>
                                              
                            </includes>
                                          
                            <systemPropertyVariables>
                                                
                                <java.util.logging.config.file>${project.basedir}/log-test.properties</java.util.logging.config.file>
                                              
                            </systemPropertyVariables>
                                        
                        </configuration>
                                    
                        <executions>
                                          
                            <execution>
                                                
                                <goals>
                                                      
                                    <goal>integration-test</goal>
                                                      
                                    <goal>verify</goal>
                                                    
                                </goals>
                                              
                            </execution>
                                        
                        </executions>
                                  
                    </plugin>
                            
                </plugins>
                      
            </build>
                
        </profile>
          
    </profiles>
    
</project>
