<?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">
  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.buildbox</groupId>
  <artifactId>releasator</artifactId>
  <version>1.0.0-rc</version>
  <packaging>jar</packaging>
  <parent>
    <groupId>net.sf.buildbox.maven</groupId>
    <artifactId>buildbox-pom</artifactId>
    <version>1.0.2-1</version>
  </parent>
  <name>releasator:1.0.0-rc</name>
  <description>Commandline utility for creating reproducible releases. Minimal parametrization, isolated sandbox for releases. Currently built on top of maven-release-plugin.</description>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.7</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>xmlunit</groupId>
      <artifactId>xmlunit</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>net.sf.buildbox</groupId>
      <artifactId>changes</artifactId>
      <version>2.0.0</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-model</artifactId>
      <version>2.2.1</version>
    </dependency>
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <version>2.0.0</version>
    </dependency>
    <dependency>
      <!-- for some mysterious reason, xmlbeans do not get propagated here from module "changes" -->
      <groupId>org.apache.xmlbeans</groupId>
      <artifactId>xmlbeans</artifactId>
      <version>2.4.0</version>
    </dependency>
  </dependencies>
  <build>
    <finalName>${artifactId}</finalName>
    <!-- -->
    <sourceDirectory>src</sourceDirectory>
    <resources>
      <resource>
        <directory>src</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <testSourceDirectory>test</testSourceDirectory>
    <testResources>
      <testResource>
        <directory>test</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </testResource>
    </testResources>
    <!-- -->
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>emma-maven-plugin</artifactId>
        <version>1.0-alpha-2</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.3</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>1.3</version>
        <configuration>
          <tasks>
            <tstamp>
              <format pattern="yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" property="build.time" timezone="UTC" />
            </tstamp>
            <mkdir dir="${project.build.outputDirectory}" />
            <echo file="${project.build.outputDirectory}/releasator.txt">version=${project.version}
              build.time=${build.time}
            </echo>
          </tasks>
        </configuration>
        <executions>
          <execution>
            <id>create-id-file</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <includes>
            <include>net/sf/buildbox/releasator/legacy/*.java</include>
          </includes>
          <testIncludes>
            <testInclude>net/sf/buildbox/releasator/legacy/*.java</testInclude>
          </testIncludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <archive>
            <manifest>
              <mainClass>SWARLauncher</mainClass>
            </manifest>
            <manifestEntries>
              <swar-main-class>net.sf.buildbox.releasator.legacy.JReleasator</swar-main-class>
              <swar-main-method>main</swar-main-method>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>net.sf.buildbox.maven</groupId>
        <artifactId>swar-maven-plugin</artifactId>
        <version>1.0.0-alpha-2</version>
        <executions>
          <execution>
            <goals>
              <goal>add-dependencies</goal>
            </goals>
            <configuration>
              <launcherArtifact>net.sf.buildbox.tools:swar-launcher</launcherArtifact>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <configuration>
          <siteDirectory>site</siteDirectory>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.1.2</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>dependencies</report>
              <report>project-team</report>
              <report>dependency-convergence</report>
              <report>plugins</report>
              <report>issue-tracking</report>
              <report>license</report>
              <report>scm</report>
              <report>summary</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
    </plugins>
  </reporting>
  <developers>
    <developer>
      <name>Petr Kozelka</name>
      <email>pkozelka@gmail.com</email>
      <url>http://kozelka.net</url>
    </developer>
  </developers>
  <licenses>
    <!-- TODO: remove this after switching to buildbox-pom with ASL as first one -->
    <license>
      <name>Apache License 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <scm>
    <connection>scm:svn:https://buildbox.svn.sourceforge.net/svnroot/buildbox/tags/net.sf.buildbox-releasator-1.0.0-rc</connection>
    <developerConnection>scm:svn:https://buildbox.svn.sourceforge.net/svnroot/buildbox/tags/net.sf.buildbox-releasator-1.0.0-rc</developerConnection>
    <url>https://buildbox.svn.sourceforge.net/svnroot/buildbox/tags/net.sf.buildbox-releasator-1.0.0-rc</url>
  </scm>
</project>
