<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>
  <parent>
    <groupId>com.atlassian.bamboo</groupId>
    <artifactId>atlassian-bamboo-plugins2-parent</artifactId>
    <version>6.3.0-m391</version>
  </parent>
  <groupId>com.atlassian.bamboo.plugins</groupId>
  <artifactId>atlassian-bamboo-plugin-clover</artifactId>
  <packaging>atlassian-plugin</packaging>
  <name>Atlassian Bamboo Clover Plugin</name>
  <description>Clover plugin for Bamboo</description>
  <url>http://www.atlassian.com/software/bamboo/</url>
  <properties>
    <!-- when changing this, remember about upgrading:
      * GrailsTest.GRAILS_CLOVER_PLUGIN_VERSION - grails-clover-plugin used in functional tests
      * CloverGrailsBuildTaskActions.GRAILS_CLOVER_PLUGIN_DEFAULT_VERSION - grails-clover-plugin used in automatic
        integration -->
    <clover.version>4.1.2</clover.version>
  </properties>
  <dependencies>
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-web</artifactId>
    </dependency>
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-api</artifactId>
    </dependency>
    <dependency>
      <groupId>com.atlassian.bamboo.plugins.builder</groupId>
      <artifactId>atlassian-bamboo-plugin-grails</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.bamboo.plugins.ant</groupId>
      <artifactId>atlassian-bamboo-plugin-ant</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.security</groupId>
      <artifactId>atlassian-secure-xml</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-lang3</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.clover</groupId>
      <artifactId>clover</artifactId>
      <version>${clover.version}</version>
    </dependency>
    <dependency>
      <groupId>dom4j</groupId>
      <artifactId>dom4j</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>atlassian-bamboo-test-utils</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.ant</groupId>
      <artifactId>ant</artifactId>
      <version>1.9.4</version> <!-- same as in Clover -->
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-all</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>pl.pragmatists</groupId>
      <artifactId>JUnitParams</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <excludeDependencies>true</excludeDependencies>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-bamboo-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Export-Package>com.atlassian.bamboo.clover</Export-Package>
            <Import-Package>
              !clover.*,
              !com.apple.mrj,
              !com.sun.*,
              !com.werken.xpath,
              !junit.*,
              !org.junit.*,
              !org.spockframework.*,
              !org.testng.*,
              !oracle.*,
              !sun.misc.*,
              !com.ibm.uvm.tools.*,
              !javax.*,
              !javassist.*,
              !net.sf.*,
              !org.apache.tools.ant.*,
              !org.objectweb.*,
              !sun.security.*,
              org.jfree.*;resolution:="optional",
              com.atlassian.bamboo.charts.*;resolution:="optional",
              com.atlassian.bamboo.reports.charts.*;resolution:="optional",
              javax.xml.parsers,
              *
            </Import-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
