<?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>basepom-oss</artifactId>
    <groupId>org.basepom</groupId>
    <version>25</version>
    <relativePath>../../pom.xml/pom.xml</relativePath>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.hubspot</groupId>
  <artifactId>async-http-client-shaded</artifactId>
  <version>2.12.1.0</version>
  <developers>
    <developer>
      <name>Jonathan Haber</name>
      <email>jhaber@hubspot.com</email>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git@github.com:HubSpot/async-http-client-shaded.git</connection>
    <developerConnection>scm:git:ssh://git@github.com/HubSpot/async-http-client-shaded.git</developerConnection>
    <tag>async-http-client-shaded-2.12.1.0</tag>
    <url>git@github.com:HubSpot/async-http-client-shaded.git</url>
  </scm>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <skipIfEmpty>false</skipIfEmpty>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.8.2</version>
          <configuration>
            <pomFile>${shaded.pom.path}</pomFile>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.4</version>
          <configuration>
            <pomFile>${shaded.pom.path}</pomFile>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.basepom.maven</groupId>
          <artifactId>duplicate-finder-maven-plugin</artifactId>
          <configuration>
            <ignoredResourcePatterns>
              <ignoredResourcePattern>org/asynchttpclient/config/ahc-default\.properties</ignoredResourcePattern>
            </ignoredResourcePatterns>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>build-helper-maven-plugin</artifactId>
          <version>3.0.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-shade-plugin</artifactId>
          <version>3.1.0</version>
          <configuration>
            <shadedArtifactAttached>false</shadedArtifactAttached>
            <createSourcesJar>true</createSourcesJar>
            <shadeSourcesContent>true</shadeSourcesContent>
            <createDependencyReducedPom>true</createDependencyReducedPom>
            <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
            <useBaseVersion>true</useBaseVersion>
            <dependencyReducedPomLocation>${shaded.pom.path}</dependencyReducedPomLocation>
            <transformers>
              <transformer />
              <transformer />
            </transformers>
            <filters>
              <filter>
                <artifact>*:*</artifact>
                <excludes>
                  <exclude>META-INF/*.SF</exclude>
                  <exclude>META-INF/*.DSA</exclude>
                  <exclude>META-INF/*.RSA</exclude>
                  <exclude>org/asynchttpclient/config/ahc-default.properties</exclude>
                </excludes>
              </filter>
            </filters>
            <artifactSet>
              <includes>
                <include>org.asynchttpclient:async-http-client</include>
                <include>org.asynchttpclient:async-http-client-netty-utils</include>
                <include>com.typesafe.netty:netty-reactive-streams</include>
                <include>io.netty:*</include>
              </includes>
            </artifactSet>
            <relocations>
              <relocation>
                <pattern>org.asynchttpclient.</pattern>
                <shadedPattern>org.asynchttpclient.shaded.</shadedPattern>
                <excludes>
                  <exclude>org/asynchttpclient/shaded/config/ahc-default.properties</exclude>
                </excludes>
              </relocation>
              <relocation>
                <pattern>io.netty.</pattern>
                <shadedPattern>org.asynchttpclient.shaded.io.netty.</shadedPattern>
              </relocation>
              <relocation>
                <pattern>com.typesafe.netty.</pattern>
                <shadedPattern>org.asynchttpclient.shaded.com.typesafe.netty.</shadedPattern>
              </relocation>
              <relocation>
                <pattern>META-INF/native/libnetty_transport_native_epoll_x86_64.so</pattern>
                <shadedPattern>META-INF/native/liborg_asynchttpclient_shaded_netty_transport_native_epoll_x86_64.so</shadedPattern>
                <rawString>true</rawString>
              </relocation>
              <relocation>
                <pattern>META-INF/native/libnetty_transport_native_kqueue_x86_64.jnilib</pattern>
                <shadedPattern>META-INF/native/liborg_asynchttpclient_shaded_netty_transport_native_kqueue_x86_64.jnilib</shadedPattern>
                <rawString>true</rawString>
              </relocation>
            </relocations>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-javadoc</id>
            <phase>package</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>src/main/javadoc/async-http-client-2.12.1-javadoc.jar</file>
                  <type>jar</type>
                  <classifier>javadoc</classifier>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.reactivestreams</groupId>
      <artifactId>reactive-streams</artifactId>
      <version>1.0.3</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.7.30</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.sun.activation</groupId>
      <artifactId>javax.activation</artifactId>
      <version>1.2.0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.asynchttpclient</groupId>
        <artifactId>async-http-client</artifactId>
        <version>${dep.async-http-client.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <properties>
    <dep.async-http-client.version>2.12.1</dep.async-http-client.version>
    <shaded.pom.path>${project.build.directory}/${project.artifactId}-${project.version}.pom</shaded.pom.path>
    <basepom.check.skip-dependency>true</basepom.check.skip-dependency>
  </properties>
</project>

