<?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>lr-public</artifactId>
    <groupId>com.zeroturnaround.liverebel</groupId>
    <version>3.0.2-pre2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>lr-api</artifactId>
  <name>LiveRebel API</name>
  <build>
    <finalName>${project.artifactId}</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
              <artifactSet>
                <excludes>
                  <exclude>org.slf4j:*</exclude>
                </excludes>
              </artifactSet>
              <relocations>
                <relocation>
                  <pattern>com.google</pattern>
                  <shadedPattern>com.zeroturnaround.liverebel.api.shaded.com.google</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>com.nothome</pattern>
                  <shadedPattern>com.zeroturnaround.liverebel.api.shaded.com.nothome</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>at.spardat</pattern>
                  <shadedPattern>com.zeroturnaround.liverebel.api.shaded.at.spardat</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>gnu</pattern>
                  <shadedPattern>com.zeroturnaround.liverebel.api.shaded.gnu</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>nanoxml</pattern>
                  <shadedPattern>com.zeroturnaround.liverebel.api.shaded.nanoxml</shadedPattern>
                </relocation>
                <relocation>
                  <pattern>org</pattern>
                  <shadedPattern>com.zeroturnaround.liverebel.api.shaded.org</shadedPattern>
                  <includes>
                    <include>org.apache.commons.codec.**</include>
                    <include>org.apache.commons.compress.**</include>
                    <include>org.apache.commons.io.**</include>
                    <include>org.apache.commons.lang.**</include>
                    <include>org.apache.commons.logging.**</include>
                    <include>org.apache.http.**</include>
                    <include>org.bouncycastle.**</include>
                    <include>org.json.**</include>
                    <include>org.tukaani.**</include>
                    <include>org.zeroturnaround.**</include>
                  </includes>
                </relocation>
              </relocations>
              <filters>
                <filter>
                  <artifact>bouncycastle:bcprov-jdk15</artifact>
                  <excludes>
                    <exclude>META-INF/BCKEY.DSA</exclude>
                    <exclude>META-INF/BCKEY.SF</exclude>
                  </excludes>
                </filter>
                <filter>
                  <artifact>bouncycastle:bcpg-jdk15</artifact>
                  <excludes>
                    <exclude>META-INF/BCKEY.DSA</exclude>
                    <exclude>META-INF/BCKEY.SF</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <attach>true</attach>
          <excludes>
            <exclude>**/impl/**</exclude>
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
      <version>1.6.3</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
</project>

