<?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.servicedesk</groupId>
        <artifactId>servicedesk-tests-parent</artifactId>
        <version>15.14.1-QR-0021</version>
    </parent>

    <artifactId>servicedesk-conditions-plugin</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Jira Service Management Example SLA Conditions Plugin</name>

    <properties>
        <jvmargs>
            <!-- placeholeder for -jvmargs param from atlas-debug  -->
        </jvmargs>
    </properties>

    <dependencies>
        <!-- Service desk -->
        <dependency>
            <groupId>com.atlassian.servicedesk</groupId>
            <artifactId>jira-servicedesk-api</artifactId>
            <version>${jira.servicedesk.application.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.annotation</groupId>
            <artifactId>javax.annotation-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-inline</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <!-- don't copy project templates (as they have to be zipped up -->
                <excludes>
                    <exclude>project-templates/**</exclude>
                </excludes>
            </resource>
        </resources>
        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>**/*$*</exclude>
                            <exclude>it/**</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>buildnumber-maven-plugin</artifactId>
            </plugin>
            <!--
                  This config is the guy who builds most of the JIRA plugin magic from our day to day point of view

                  Be deliberate about what you change here and why you do it

                  -->
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>jira-maven-plugin</artifactId>
                <configuration>
                    <processI18nUsage>false</processI18nUsage>
                    <log4j2Config>src/test/resources/log4j2-test.xml</log4j2Config>
                    <systemPropertyVariables>
                        <xvfb.enable>${xvfb.enable}</xvfb.enable>
                    </systemPropertyVariables>
                    <jvmArgs>${jvmargs}</jvmArgs>
                    <instructions>
                        <Bundle-SymbolicName>com.atlassian.jira.plugins.servicedesk.conditions</Bundle-SymbolicName>
                        <Private-Package>
                        </Private-Package>
                        <!--optionals first, in alphabetic order, followed by mandatories, followed by exclusions, in alphabetic order-->
                        <Import-Package><!-- declare import for javax.annotation here so @PostConstruct can be used -->
                            javax.annotation,

                            *
                        </Import-Package>
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                    <!--These are put there via AMPs - since AMPS doesnt do OBRs then we need to repeat plugins here-->
                    <pluginArtifacts>
                    </pluginArtifacts>
                    <pluginDependencies>
                    </pluginDependencies>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
