<?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>simulacron-parent</artifactId>
    <groupId>com.datastax.oss.simulacron</groupId>
    <version>0.5.2</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>simulacron-standalone</artifactId>
  <name>simulacron standalone jar</name>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <transformers>
                <transformer>
                  <mainClass>${mainClass}</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.6.0</version>
        <configuration>
          <mainClass>${mainClass}</mainClass>
          <cleanupDaemonThreads>true</cleanupDaemonThreads>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>de.jutzig</groupId>
            <artifactId>github-release-plugin</artifactId>
            <version>1.2.0</version>
            <executions>
              <execution>
                <id>release-at-deploy</id>
                <phase>deploy</phase>
                <goals>
                  <goal>release</goal>
                </goals>
                <configuration>
                  <prerelease>true</prerelease>
                  <draft>true</draft>
                  <repositoryId>datastax/simulacron</repositoryId>
                  <tag>0.5.2</tag>
                  <fileSets>
                    <fileSet>
                      <directory>/Users/atolbert/Documents/Projects/simulacron/target/checkout/standalone/target</directory>
                      <includes>
                        <include>simulacron-standalone-0.5.2.jar</include>
                      </includes>
                    </fileSet>
                  </fileSets>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <prerelease>true</prerelease>
              <draft>true</draft>
              <repositoryId>datastax/simulacron</repositoryId>
              <tag>0.5.2</tag>
              <fileSets>
                <fileSet>
                  <directory>/Users/atolbert/Documents/Projects/simulacron/target/checkout/standalone/target</directory>
                  <includes>
                    <include>simulacron-standalone-0.5.2.jar</include>
                  </includes>
                </fileSet>
              </fileSets>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <version>3.6.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <properties>
    <mainClass>com.datastax.oss.simulacron.standalone.App</mainClass>
  </properties>
</project>

