<?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>pom-jython-shaded</artifactId>
    <groupId>org.scijava</groupId>
    <version>2.7.1.1</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>jython-shaded</artifactId>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <artifactSet>
            <excludes>
              <exclude>com.github.jnr:jffi</exclude>
            </excludes>
          </artifactSet>
          <filters>
            <filter>
              <artifact>org.python:jython-standalone</artifact>
              <includes>
                <include>**/*$py.class</include>
              </includes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>copy</id>
            <phase>prepare-package</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.python</groupId>
                  <artifactId>jython-standalone</artifactId>
                  <version>${jython.version}</version>
                  <classifier>javadoc</classifier>
                  <outputDirectory>${project.build.directory}/</outputDirectory>
                  <destFileName>${project.artifactId}-${project.version}-javadoc.jar</destFileName>
                </artifactItem>
                <artifactItem>
                  <groupId>org.python</groupId>
                  <artifactId>jython-standalone</artifactId>
                  <version>${jython.version}</version>
                  <classifier>sources</classifier>
                  <outputDirectory>${project.build.directory}/</outputDirectory>
                  <destFileName>${project.artifactId}-${project.version}-sources.jar</destFileName>
                </artifactItem>
              </artifactItems>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.9.1</version>
        <executions>
          <execution>
            <id>attach-artifacts</id>
            <phase>package</phase>
            <goals>
              <goal>attach-artifact</goal>
            </goals>
            <configuration>
              <artifacts>
                <artifact>
                  <file>${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar</file>
                  <type>jar</type>
                  <classifier>javadoc</classifier>
                </artifact>
                <artifact>
                  <file>${project.build.directory}/${project.artifactId}-${project.version}-sources.jar</file>
                  <type>jar</type>
                  <classifier>sources</classifier>
                </artifact>
              </artifacts>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jffi</artifactId>
      <version>1.2.17</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.github.jnr</groupId>
      <artifactId>jffi</artifactId>
      <version>1.2.17</version>
      <classifier>native</classifier>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <properties>
    <package-name>org.python</package-name>
    <main-class>org.python.util.jython</main-class>
    <enforcer.skip>true</enforcer.skip>
  </properties>
</project>

