<?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>flatpack-parent</artifactId>
    <groupId>com.getperka.flatpack</groupId>
    <version>2.21.0</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>flatpack-thirdparty</artifactId>
  <name>FlatPack Third-Party Dependencies</name>
  <description>FlatPack has dependencies on libraries which depend on various incompatible versions of ASM. This module provides relocated versions of those classes.</description>
  <scm>
    <connection>scm:git:git@git.getperka.com:flatpack.git</connection>
    <developerConnection>scm:git:git@git.getperka.com:flatpack.git</developerConnection>
    <tag>flatpack-2.21.0</tag>
    <url>scm:git:git@git.getperka.com:flatpack.git</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <createDependencyReducedPom>true</createDependencyReducedPom>
          <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
          <relocations>
            <relocation>
              <pattern>org.objectweb.asm</pattern>
              <shadedPattern>com.getperka.flatpack.thirdparty.asm4</shadedPattern>
            </relocation>
          </relocations>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

