<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>arpnetworking-parent-pom</artifactId>
    <groupId>com.arpnetworking.build</groupId>
    <version>1.1.3</version>
    <relativePath>pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.arpnetworking.metrics.extras</groupId>
  <artifactId>apache-http-sink-extra</artifactId>
  <name>Apache HTTP Sink</name>
  <version>0.9.0</version>
  <description>Apache HTTP sink for metrics client.</description>
  <url>https://github.com/ArpNetworking/metrics-sink-http-apache</url>
  <developers>
    <developer>
      <id>brandonarp</id>
      <email>brandon.arp@inscopemetrics.com</email>
      <organization>Inscope Metrics</organization>
      <organizationUrl>http://www.inscopemetrics.com</organizationUrl>
      <roles>
        <role>developer</role>
      </roles>
    </developer>
    <developer>
      <id>villekoskela</id>
      <email>ville.koskela@inscopemetrics.com</email>
      <organization>Inscope Metrics</organization>
      <organizationUrl>http://www.inscopemetrics.com</organizationUrl>
      <roles>
        <role>developer</role>
      </roles>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
      <comments>A business-friendly OSS license</comments>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git@github.com:arpnetworking/metrics-apache-http-sink-extra.git</connection>
    <developerConnection>scm:git:git@github.com:arpnetworking/metrics-apache-http-sink-extra.git</developerConnection>
    <tag>apache-http-sink-extra-0.9.0</tag>
    <url>https://github.com/arpnetworking/metrics-apache-http-sink-extra</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-checkstyle-plugin</artifactId>
      </plugin>
      <plugin>
        <artifactId>maven-failsafe-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>com.rimerosolutions.maven.plugins</groupId>
        <artifactId>wrapper-maven-plugin</artifactId>
        <inherited>false</inherited>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>${maven.shade.plugin.version}</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <minimizeJar>false</minimizeJar>
          <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
          <artifactSet>
            <excludes />
            <includes>
              <include>com.inscopemetrics.client:protocol</include>
              <include>com.google.protobuf:protobuf-java</include>
              <include>org.apache.httpcomponents:httpclient</include>
              <include>org.apache.httpcomponents:httpcore</include>
              <include>commons-logging:commons-logging</include>
              <include>commons-codec:commons-codec</include>
            </includes>
          </artifactSet>
          <filters>
            <filter>
              <artifact>com.inscopemetrics.client:protocol</artifact>
              <excludes>
                <exclude>LICENSE</exclude>
                <exclude>META-INF/**</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>com.google.protobuf:protobuf-java</artifact>
              <excludes>
                <exclude>META-INF/**</exclude>
                <exclude>google/protobuf/**</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>org.apache.httpcomponents:httpclient</artifact>
              <excludes>
                <exclude>META-INF/**</exclude>
                <exclude>mozilla/public-suffix-list.txt</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>org.apache.httpcomponents:httpcore</artifact>
              <excludes>
                <exclude>META-INF/**</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>commons-logging:commons-logging</artifact>
              <excludes>
                <exclude>META-INF/**</exclude>
              </excludes>
            </filter>
            <filter>
              <artifact>commons-codec:commons-codec</artifact>
              <excludes>
                <exclude>META-INF/**</exclude>
              </excludes>
            </filter>
          </filters>
          <relocations>
            <relocation>
              <pattern>com.inscopemetrics.client.protocol</pattern>
              <shadedPattern>com.arpnetworking.metrics.apachehttpsinkextra.shaded.com.inscopemetrics.client.protocol</shadedPattern>
            </relocation>
            <relocation>
              <pattern>com.google.protobuf</pattern>
              <shadedPattern>com.arpnetworking.metrics.apachehttpsinkextra.shaded.com.google.protobuf</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.http</pattern>
              <shadedPattern>com.arpnetworking.metrics.apachehttpsinkextra.shaded.org.apache.http</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.http</pattern>
              <shadedPattern>com.arpnetworking.metrics.apachehttpsinkextra.shaded.org.apache.http</shadedPattern>
            </relocation>
            <relocation>
              <pattern>org.apache.commons</pattern>
              <shadedPattern>com.arpnetworking.metrics.apachehttpsinkextra.shaded.org.apache.commons</shadedPattern>
            </relocation>
          </relocations>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.25</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.arpnetworking.metrics</groupId>
      <artifactId>metrics-client</artifactId>
      <version>0.10.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>findbugs-annotations</artifactId>
      <version>3.0.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.arpnetworking.commons</groupId>
      <artifactId>commons</artifactId>
      <version>1.13.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>jsr305</artifactId>
      <version>3.0.2</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <properties>
    <wiremock.version>2.8.0</wiremock.version>
    <metrics.client.version>0.10.0</metrics.client.version>
    <slf4j.version>1.7.25</slf4j.version>
    <jacoco.check.branch.coverage>0.92</jacoco.check.branch.coverage>
    <junit.version>4.12</junit.version>
    <apache.http.client.version>4.5.3</apache.http.client.version>
    <hamcrest.version>2.0.0.0</hamcrest.version>
    <apache.http.core.version>4.4.6</apache.http.core.version>
    <client.protocol.version>0.10.0</client.protocol.version>
    <maven.shade.plugin.version>3.1.0</maven.shade.plugin.version>
    <jacoco.check.line.coverage>0.97</jacoco.check.line.coverage>
    <arpnetworking.commons.version>1.13.1</arpnetworking.commons.version>
    <mockito.version>2.7.0</mockito.version>
    <protobuf.version>3.4.0</protobuf.version>
    <jsr305.version>3.0.2</jsr305.version>
  </properties>
</project>

