<?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.pom</groupId>
        <artifactId>public-pom</artifactId>
        <version>5.0.21</version>
    </parent>
    <groupId>com.atlassian.bamboo.plugins</groupId>
    <artifactId>bamboo-agent-notification-plugin</artifactId>
    <version>6.9.2</version>
    <packaging>atlassian-plugin</packaging>
    <name>Bamboo Agent Notification plugin</name>
    <description>Send notifications on remote agent online/offline events</description>
    <url>https://marketplace.atlassian.com/plugins/com.atlassianlab.bamboo.plugins.bamboo-agent-notification-plugin</url>
    <organization>
        <name>Atlassian Software Systems Pty Ltd</name>
        <url>http://www.atlassian.com/</url>
    </organization>
    <scm>
        <connection>scm:git:https://bitbucket.org/atlassian/bamboo-agent-notification-plugin</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/atlassian/bamboo-agent-notification-plugin.git</developerConnection>
        <tag>bamboo-agent-notification-plugin-6.9.2</tag>
    </scm>
    <properties>
        <bamboo.version>6.8.0-rc1</bamboo.version>
        <amps.version>6.3.21</amps.version>
        <mockito.version>2.2.0</mockito.version>
        <atlassian.selenium.version>2.3-m8</atlassian.selenium.version>
        <commons.lang3.version>3.3.2</commons.lang3.version>
        <commons.httpclient4-core.version>4.3.3</commons.httpclient4-core.version>
        <commons.httpclient4.version>4.3.6</commons.httpclient4.version>
        <atlassian.spring.scanner.version>2.1.8</atlassian.spring.scanner.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-api</artifactId>
            <version>${bamboo.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-core</artifactId>
            <version>${bamboo.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-web</artifactId>
            <version>${bamboo.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>1.1.1</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.event</groupId>
            <artifactId>atlassian-event</artifactId>
            <version>3.0.0</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>${commons.lang3.version}</version>
            <scope>compile</scope>
        </dependency>
        <!-- Atlassian Spring scanner -->
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-annotation</artifactId>
            <version>${atlassian.spring.scanner.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-runtime</artifactId>
            <version>${atlassian.spring.scanner.version}</version>
            <scope>provided</scope>
        </dependency>
        <!--tests-->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <version>1.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <version>${mockito.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>pl.pragmatists</groupId>
            <artifactId>JUnitParams</artifactId>
            <version>1.0.5</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-test-utils</artifactId>
            <version>${bamboo.version}</version>
            <scope>test</scope>
        </dependency>
        <!--to run remote agent in separate process-->
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>bamboo-agent</artifactId>
            <version>${bamboo.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.bamboo</groupId>
            <artifactId>atlassian-bamboo-pageobjects</artifactId>
            <version>${bamboo.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.selenium</groupId>
            <artifactId>atlassian-pageobjects-elements</artifactId>
            <version>${atlassian.selenium.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.4.01</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore</artifactId>
            <version>${commons.httpclient4-core.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>${commons.httpclient4.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <!-- Enable this to get build-time logging of annotations atlassian-spring-scanner-maven-plugin has noticed -->
                    <verbose>false</verbose>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>it/**</exclude>
                        <exclude>**/*$*</exclude>
                    </excludes>
                </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.atlassianlab.bamboo.plugins.agentnotification.*</Export-Package>
                        <Spring-Context>*;timeout:=60</Spring-Context>
                        <Import-Package>
                            com.atlassian.sal.api.message;version="0.0.0",
                            *;resolution:=optional
                        </Import-Package>
                    </instructions>
                    <productVersion>${bamboo.version}</productVersion>
                    <productDataVersion>${bamboo.version}</productDataVersion>
                    <systemPropertyVariables>
                        <xvfb.enable>true</xvfb.enable>
                        <bamboo.agent.heartbeatInterval>4</bamboo.agent.heartbeatInterval>
                        <bamboo.agent.heartbeatTimeoutSeconds>15</bamboo.agent.heartbeatTimeoutSeconds>
                        <bamboo.agent.heartbeatCheckInterval>5</bamboo.agent.heartbeatCheckInterval>
                        <!--see com.atlassian.bamboo.testutils.agent.RemoteAgentInstallation.REMOTE_AGENT_LOGS_DIRECTORY-->
                        <remote.agent.logs.directory>${project.build.directory}/RemoteAgentLogs</remote.agent.logs.directory>
                        <!--required for local tests to setup mailserver by rest call-->
                        <atlassian.darkfeature.bamboo.experimental.rest.admin.enabled>true</atlassian.darkfeature.bamboo.experimental.rest.admin.enabled>
                        <!--required for RemoteAgentRule to use correct version of bamboo-agent.jar-->
                        <acceptance.test.version>${bamboo.version}</acceptance.test.version>
                    </systemPropertyVariables>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.bamboo.plugins</groupId>
                            <artifactId>atlassian-bamboo-plugin-test-utils</artifactId>
                            <version>${bamboo.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <testGroups>
                        <testGroup>
                            <id>bamboo</id>
                            <instanceIds>
                                <instanceId>bamboo</instanceId>
                            </instanceIds>
                            <includes>
                                <include>it/**/*Test.java</include>
                            </includes>
                        </testGroup>
                    </testGroups>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>