<?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>deeplearning4j</artifactId>
    <groupId>org.deeplearning4j</groupId>
    <version>1.0.0-beta4</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.deeplearning4j</groupId>
  <artifactId>jumpy</artifactId>
  <name>jumpy</name>
  <licenses>
    <license>
      <name>Apache License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer>
                  <mainClass>org.deeplearning4j.example.App</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </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}/src</classesDirectory>
            </configuration>
          </execution>
        </executions>
        <configuration>
          <forceCreation>true</forceCreation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>python-install-cython</id>
            <phase>install</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>pip</executable>
              <workingDirectory>${basedir}</workingDirectory>
              <arguments>
                <argument>install</argument>
                <argument>--user</argument>
                <argument>Cython</argument>
                <argument>--install-option=--no-cython-compile</argument>
              </arguments>
            </configuration>
          </execution>
          <execution>
            <id>python-build</id>
            <phase>install</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>pip</executable>
              <workingDirectory>${basedir}</workingDirectory>
              <arguments>
                <argument>install</argument>
                <argument>--user</argument>
                <argument>-e</argument>
                <argument>.[tests, spark]</argument>
              </arguments>
            </configuration>
          </execution>
          <execution>
            <id>python-test</id>
            <phase>test</phase>
            <goals>
              <goal>exec</goal>
            </goals>
            <configuration>
              <executable>python</executable>
              <workingDirectory>${basedir}</workingDirectory>
              <skip>${jumpy.test.skip}</skip>
              <arguments>
                <argument>-m</argument>
                <argument>pytest</argument>
                <argument>--pep8</argument>
                <argument>-m</argument>
                <argument>pep8</argument>
                <argument>tests/</argument>
              </arguments>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <properties>
    <jumpy.compile.skip>false</jumpy.compile.skip>
    <jumpy.version>0.2.4</jumpy.version>
  </properties>
</project>

