<?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/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>com.atlassian.bamboo</groupId>
    <artifactId>atlassian-bamboo-plugins2-parent</artifactId>
    <version>5.1.0</version>
  </parent>

  <groupId>com.atlassian.bamboo.plugins.brokenbuildtracker</groupId>
  <artifactId>atlassian-bamboo-plugin-brokenbuildtracker</artifactId>
  <version>5.1.0</version>
  <packaging>atlassian-plugin</packaging>

  <name>Atlassian Bamboo Broken Build Tracker</name>
  <description>Atlassian Bamboo Broken Build Tracker</description>

  <properties>
    <atlassian.plugin.key>com.atlassian.bamboo.brokenbuildtracker</atlassian.plugin.key>
    <atlassian.product.version>${project.version}</atlassian.product.version>
    <atlassian.product.data.version>3.2.2</atlassian.product.data.version>
    <!--TODO make it use ${activeobjects.version}-->
    <ao.version>0.17.2</ao.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-web</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>
    <dependency>
      <groupId>com.atlassian.activeobjects</groupId>
      <artifactId>activeobjects-plugin</artifactId>
      <version>0.17.2</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.atlassian.activeobjects</groupId>
      <artifactId>activeobjects-test</artifactId>
      <version>0.17.2</version>
      <exclusions>
        <exclusion>
          <groupId>net.java.ao</groupId>
          <artifactId>activeobjects-test</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.google.collections</groupId>
          <artifactId>google-collections</artifactId>
        </exclusion>
      </exclusions>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-pageobjects</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
          <!-- Skip temporary the test for release,
    because refactoring have included wrong test -->
          <arguments>-Dmaven.test.it.skip=true -Dmaven.test.skip -DskipITs</arguments>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <!-- cant get AO tests running in parallel -->
          <parallel>none</parallel>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-bamboo-plugin</artifactId>
        <version>${amps.version}</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Export-Package>
              com.atlassian.bamboo.brokenbuildtracker.*
            </Export-Package>
          </instructions>
          <productVersion>${atlassian.product.version}</productVersion>
          <productDataVersion>${atlassian.product.data.version}</productDataVersion>
          <systemPropertyVariables>
            <xvfb.enable>${xvfb.enable}</xvfb.enable>
          </systemPropertyVariables>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
