<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>
    <groupId>com.atlassian.jira</groupId>
    <artifactId>jira-ondemand-plugins</artifactId>
    <version>6.0</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <artifactId>jira-ondemand-ual-plugin</artifactId>
  <name>Atlassian JIRA - OnDemand - UAL Plugin</name>
    <packaging>bundle</packaging>

    <properties>
        <studio.pdk.apps>jira</studio.pdk.apps>
        <atlassian.plugin.key>com.atlassian.studio.studio-ual-jira-plugin</atlassian.plugin.key>
    </properties>

    <profiles>
        <profile>
            <id>skiptests</id>
            <properties>
                <maven.test.skip>false</maven.test.skip>
                <skipTests>true</skipTests>
            </properties>
        </profile>
    </profiles>

    <build>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Import-Package>
                            com.atlassian.applinks*;version="[3.0.0,4.0.0)",
                            *;resolution:=optional
                        </Import-Package>
                        <Private-Package>
                            com.atlassian.studio.ual.jira.*
                        </Private-Package>
                        <Export-Package>
                            com.atlassian.studio.ual.jira
                        </Export-Package>
                        <Spring-Context>*;timeout:=600</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-jar-plugin</artifactId>
                <executions>
                  <execution>
                    <goals>
                       <goal>test-jar</goal>
                    </goals>
                  </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
            </plugin>      
        </plugins>
    </build>

    <dependencies>
        <!-- Override for UAL  -->
        <dependency>
            <groupId>com.atlassian.applinks</groupId>
            <artifactId>applinks-api</artifactId>
            <version>${applinks.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.applinks</groupId>
            <artifactId>applinks-spi</artifactId>
            <version>${applinks.version}</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring</artifactId>
            <version>2.5.6</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.studio</groupId>
            <artifactId>studio-ual-plugin</artifactId>
            <version>${ondemand.core.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
          <groupId>com.atlassian.jira.plugins</groupId>
          <artifactId>jira-fisheye-plugin</artifactId>
          <version>${fisheye.plugin.version}</version>
          <scope>provided</scope>
        </dependency>

        <!--logging-->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>1.5.8</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
            <version>1.5.8</version>
            <scope>test</scope>
        </dependency>

        <!-- Test -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-all</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
