<?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">

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

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.querylang</groupId>
    <artifactId>atlassian-query-lang-parent</artifactId>
    <version>4.0.1</version>
    <packaging>pom</packaging>

    <organization>
        <name>Atlassian</name>
    </organization>

    <name>atlassian-query-lang-parent</name>
    <description>This is the atlassian query lang parent</description>

    <licenses>
        <license>
            <name>Atlassian 3.0 End User License Agreement</name>
            <url>http://www.atlassian.com/end-user-agreement/</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/CONFSERVER/atlassian-query-lang.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/CONFSERVER/atlassian-query-lang.git</developerConnection>
        <tag>atlassian-query-lang-parent-4.0.1</tag>
        <url>https://stash.atlassian.com/projects/CONFSERVER/repos/atlassian-query-lang/browse</url>
    </scm>
    <issueManagement>
        <system>jira</system>
        <url>https://jira.atlassian.com/browse/CRA</url>
    </issueManagement>
    <ciManagement>
        <system>bamboo</system>
        <url>https://confluence-bamboo.internal.atlassian.com/browse/CONFPLUGINS-CQL</url>
    </ciManagement>

    <properties>
        <maven.javadoc.skip>true</maven.javadoc.skip>
        <confluence.version>6.7.0</confluence.version>
        <confluence.data.version>${confluence.version}</confluence.data.version>
        <amps.version>6.3.20</amps.version>
        <plugin.testrunner.version>1.1.4</plugin.testrunner.version>
        <antlr.version>4.3</antlr.version>
        <slf4j.version>1.7.1</slf4j.version>
        <junit.version>4.12</junit.version>
        <hamcrest.version>1.3</hamcrest.version>
        <mockito.version>1.9.5</mockito.version>
        <jdkLevel>1.8</jdkLevel>
        <spring.version>4.1.6.RELEASE</spring.version>
        <atlassian.spring.scanner.version>2.1.7</atlassian.spring.scanner.version>
        <guava.version>18.0</guava.version>
        <atlassian.plugins.version>4.6.2</atlassian.plugins.version>
        <commons.lang3.version>3.8.1</commons.lang3.version>
        <atlassian.event.version>4.0.0</atlassian.event.version>
        <joda-time.vesion>2.10.1</joda-time.vesion>
        <atlassian-annotations.vesion>2.1.0</atlassian-annotations.vesion>
        <reflections.vesion>0.9.10</reflections.vesion>
    </properties>

    <modules>
        <module>atlassian-query-lang-spi</module>
        <module>atlassian-query-lang</module>
    </modules>

    <build>
        <plugins>
            <!-- override the enforcer plugin so that we can do the release dance against a milestone of confluence -->
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.4.3</version>
                <configuration>
                    <!-- Ignoring integration tests on test phase so they just run in integration-test phase.-->
                    <!-- This configuration is necessary when using AMPS together with a parent POM.-->
                    <excludes>
                        <exclude>it/rest/**</exclude>
                        <exclude>**/*$*</exclude> <!-- surefire y u run inner classes -->
                    </excludes>
                </configuration>
            </plugin>
            <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>
                        <!-- process-classes seems to be skipped if you are using scala
                             so perhaps use prepare-package -->
                        <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>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <configuration>
                    <!-- apply checkstyles for sources only, ignore generated java files -->
                    <sourceDirectories>
                        <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
                    </sourceDirectories>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.reflections</groupId>
                <artifactId>reflections</artifactId>
                <version>${reflections.vesion}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.confluence</groupId>
                <artifactId>confluence-java-api</artifactId>
                <version>${confluence.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.confluence</groupId>
                <artifactId>confluence</artifactId>
                <version>${confluence.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-core</artifactId>
                <version>${atlassian.plugins.version}</version>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <groupId>com.atlassian.event</groupId>
                        <artifactId>atlassian-event</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${commons.lang3.version}</version>
            </dependency>
            <dependency>
            <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-all</artifactId>
                <version>${hamcrest.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.event</groupId>
                <artifactId>atlassian-event</artifactId>
                <version>${atlassian.event.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.antlr</groupId>
                <artifactId>antlr4-runtime</artifactId>
                <version>${antlr.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.annotations</groupId>
                <artifactId>atlassian-annotations</artifactId>
                <version>${atlassian-annotations.vesion}</version>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>${joda-time.vesion}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-annotation</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <scope>provided</scope>
            </dependency>
            <!--Spring-->
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>
