<?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>jvmtool-umbrella-pom</artifactId>
    <groupId>org.gridkit.jvmtool</groupId>
    <version>0.23</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>sjk</artifactId>
  <name>${project.groupId}::${project.artifactId}</name>
  <description>SJK jar assembly</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>1.6</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <artifactSet>
                <includes>
                  <include>org.gridkit.jvmtool:*</include>
                  <include>org.gridkit.lab:*</include>
                  <include>org.perfkit.sjk.parsers:*</include>
                  <include>com.beust:*</include>
                </includes>
              </artifactSet>
              <transformers>
                <transformer>
                  <manifestEntries>
                    <Main-Class>org.gridkit.jvmtool.SJK</Main-Class>
                    <Premain-Class>org.gridkit.jvmtool.agent.SjkAgent</Premain-Class>
                    <Agent-Class>org.gridkit.jvmtool.agent.SjkAgent</Agent-Class>
                    <Can-Redefine-Classes>false</Can-Redefine-Classes>
                  </manifestEntries>
                </transformer>
                <transformer />
              </transformers>
              <filters>
                <filter>
                  <artifact>*:*</artifact>
                  <excludes>
                    <exclude>sun/**</exclude>
                    <exclude>java/**</exclude>
                    <exclude>jdk/**</exclude>
                    <exclude>org/gridkit/lab/jvm/threaddump/**</exclude>
                  </excludes>
                </filter>
              </filters>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <configuration>
          <skip>false</skip>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <id>empty-javadoc-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>javadoc</classifier>
              <classesDirectory>${basedir}/javadoc</classesDirectory>
            </configuration>
          </execution>
          <execution>
            <id>empty-sources-jar</id>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>sources</classifier>
              <classesDirectory>${basedir}/sources</classesDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>

