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

    <parent>
        <groupId>com.atlassian.pom</groupId>
        <artifactId>closedsource-pom</artifactId>
        <version>5.0.9</version>
    </parent>

    <groupId>com.atlassian.plugins</groupId>
    <artifactId>atlassian-remote-event-parent</artifactId>
    <version>1.0.13</version>
    <packaging>pom</packaging>

    <name>Atlassian Remote Event Parent</name>
    <description>Remote Event parent POM</description>
    <licenses>
        <license>
            <name>Atlassian End User License</name>
            <url>https://www.atlassian.com/end-user-agreement/</url>
            <comments>Atlassian 3.0 End User License Agreement</comments>
        </license>
    </licenses>

    <modules>
        <module>api</module>
        <module>common</module>
        <module>consumer</module>
        <module>func-test</module>
        <module>producer</module>
        <module>it/it-api</module>
        <module>it/it-consumer</module>
        <module>it/it-diagnostic</module>
        <module>it/it-producer</module>
    </modules>

    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/fuse/atlassian-remote-event-server.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/fuse/atlassian-remote-event-server.git</developerConnection>
        <url>https://stash.atlassian.com/projects/FUSE/repos/atlassian-remote-event-server</url>
        <tag>atlassian-remote-event-parent-1.0.13</tag>
    </scm>
    <issueManagement>
        <system>JIRA</system>
        <url>https://bulldog.internal.atlassian.com/browse/SIN</url>
    </issueManagement>
    <ciManagement>
        <system>Bamboo</system>
        <url>https://jira-bamboo.internal.atlassian.com/browse/REV-CI</url>
    </ciManagement>

    <properties>
        <amps.version>6.1.0</amps.version>
        <atlassian-plugin.description>${project.description}</atlassian-plugin.description>
        <atlassian.annotations.version>0.8.1</atlassian.annotations.version>
        <atlassian.applinks.version>4.1.1</atlassian.applinks.version>
        <atlassian.event.version>2.3.0</atlassian.event.version>
        <atlassian.navlinks.version>3.3.4</atlassian.navlinks.version>
        <atlassian.rest.version>2.8.1</atlassian.rest.version>
        <atlassian.spring.scanner.version>1.2.9</atlassian.spring.scanner.version>
        <bamboo.version>5.8.1</bamboo.version>
        <bitbucket.version>4.0.3</bitbucket.version>
        <cache.api.version>2.3.0</cache.api.version>
        <confluence.version>5.7.4</confluence.version>
        <failure.cache.version>0.11</failure.cache.version>
        <fecru.version>3.5.2-rc1-e165c138fa203af11d25c6ccd4db2ae0b2b89bb4</fecru.version>
        <guava.version>18.0</guava.version>
        <jira.version>7.0.0</jira.version>
        <joda.time.version>2.0</joda.time.version>
        <jsr305.version>3.0.0</jsr305.version>
        <od.testing.configuration>use-maven,3</od.testing.configuration>
        <plugins.version>3.0.5</plugins.version>
        <refapp.version>2.9.1</refapp.version>
        <sal.api.version>2.10.9</sal.api.version>
        <scala.osgi.import>[2.10.0,2.11.0)</scala.osgi.import>
        <scala.plugin.version>0.5</scala.plugin.version>
        <scala.version.base>2.10</scala.version.base>
        <scala.version>${scala.version.base}.3</scala.version>
        <slf4j.version>1.6.4</slf4j.version>
        <spring.version>2.5.6.SEC01</spring.version>
        <stash.version>3.11.4</stash.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- AT/SLAT test case annotations -->
            <dependency>
                <groupId>com.atlassian</groupId>
                <artifactId>atlassian-test-categories</artifactId>
                <version>0.5</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-annotation</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-processor</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>runtime</scope>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>2.3.2</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>4.2.6</version>
                <exclusions>
                    <exclusion>
                        <!-- Already provided by host products -->
                        <groupId>commons-codec</groupId>
                        <artifactId>commons-codec</artifactId>
                    </exclusion>
                    <exclusion>
                        <!-- Already provided by host products (or jcl-over-slf4j) -->
                        <groupId>commons-logging</groupId>
                        <artifactId>commons-logging</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.code.findbugs</groupId>
                <artifactId>jsr305</artifactId>
                <version>${jsr305.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <includes>
                            <include>**/*Test.*</include>
                            <include>**/*Spec.*</include>
                        </includes>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-dispatcher-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-plugin</artifactId>
                    <version>${amps.version}</version>
                    <extensions>true</extensions>
                    <configuration>
                        <!-- sensible defaults -->
                        <extractDependencies>false</extractDependencies>
                        <!-- disable AMPS bloat -->
                        <skipAllPrompts>true</skipAllPrompts>
                        <enableFastdev>false</enableFastdev>
                        <enableDevToolbox>false</enableDevToolbox>
                    </configuration>
                </plugin>
                <plugin>
                    <!-- use local checkout with Git -->
                    <artifactId>maven-release-plugin</artifactId>
                    <configuration>
                        <localCheckout>true</localCheckout>
                    </configuration>
                </plugin>
                <!-- Build test JAR for AT/SLAT execution -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>2.4</version>
                    <executions>
                        <execution>
                            <goals>
                                <goal>test-jar</goal>
                            </goals>
                            <configuration>
                                <forceCreation>true</forceCreation>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <profiles>
        <profile>
            <id>jdk8</id>
            <activation>
                <jdk>1.8</jdk>
            </activation>
            <properties>
                <confluence.version>5.7-m14</confluence.version>
            </properties>
        </profile>
        <profile>
            <id>sonar</id>
            <properties>
                <sonar.jdbc.url>jdbc:postgresql://sonarqube-db.internal.atlassian.com/sonar</sonar.jdbc.url>
                <sonar.jdbc.driver>org.postgresql.Driver</sonar.jdbc.driver>
                <sonar.jdbc.username>sonar</sonar.jdbc.username>
                <sonar.jdbc.password>sonar</sonar.jdbc.password>
                <sonar.host.url>http://ec402.prod.inf.atlassian.com:9000/</sonar.host.url>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>sonar-maven-plugin</artifactId>
                        <version>2.5</version>
                        <dependencies>
                            <dependency>
                                <groupId>org.postgresql</groupId>
                                <artifactId>postgresql</artifactId>
                                <version>9.4-1201-jdbc41</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <version>0.7.4.201502262128</version>
                        <executions>
                            <execution>
                                <id>prepare-agent</id>
                                <goals>
                                    <goal>prepare-agent</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>report</id>
                                <phase>prepare-package</phase>
                                <goals>
                                    <goal>report</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
