<?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>central-pom</artifactId>
        <version>5.0.21</version>
    </parent>

    <groupId>com.atlassian.stash</groupId>
    <artifactId>stash-java-client</artifactId>
    <version>2.3.11</version>
    <packaging>pom</packaging>
    <name>stash-java-client</name>
    <description>Stash client using REST API through Application Links or Apache HttpClient</description>
    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com</url>
    </organization>

    <issueManagement>
        <system>Bitbucket</system>
        <url>https://bitbucket.org/atlassian/stash-java-client/issues</url>
    </issueManagement>

    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
                                       
    <scm>
        <connection>scm:git:ssh://git@bitbucket.org/atlassianlabs/stash-java-client.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/atlassianlabs/stash-java-client.git</developerConnection>
        <url>https://bitbucket.org/atlassianlabs/stash-java-client</url>
      <tag>stash-java-client-2.3.11</tag>
  </scm>

    <modules>
        <module>api</module>
        <module>core</module>
        <module>applinks</module>
        <module>httpclient</module>
        <module>stash-java-client-bamboo-specs</module>
    </modules>

    <dependencyManagement>
        <dependencies>

            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.applinks</groupId>
                <artifactId>applinks-api</artifactId>
                <version>${applinks.version}</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.applinks</groupId>
                <artifactId>applinks-spi</artifactId>
                <version>${applinks.version}</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.applinks</groupId>
                <artifactId>applinks-plugin</artifactId>
                <version>${applinks.version}</version>
                <scope>runtime</scope>
            </dependency>

            <dependency>
                <groupId>com.google.code.findbugs</groupId>
                <artifactId>jsr305</artifactId>
                <version>3.0.0</version>
            </dependency>

            <dependency>
                <groupId>com.google.code.gson</groupId>
                <artifactId>gson</artifactId>
                <version>2.2.4</version>
            </dependency>

            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-core</artifactId>
                <version>${hamcrest.version}</version>
            </dependency>

            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-all</artifactId>
                <version>${hamcrest.version}</version>
            </dependency>

            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.sal</groupId>
                <artifactId>sal-api</artifactId>
                <version>2.10.11</version>
            </dependency>

            <dependency>
                <groupId>log4j</groupId>
                <artifactId>log4j</artifactId>
                <version>${log4j.version}</version>
            </dependency>

            <dependency>
                <groupId>com.jayway.jsonpath</groupId>
                <artifactId>json-path-assert</artifactId>
                <version>2.2.0</version>
                <scope>test</scope>
            </dependency>

        </dependencies>
    </dependencyManagement>

    <profiles>
        <profile>
            <id>checks</id>
            <activation>
                <activeByDefault>true</activeByDefault>
                <property>
                    <name>skipChecks</name>
                    <value>false</value>
                </property>
            </activation>
            <modules>
                <module>tests</module>
            </modules>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-checkstyle-plugin</artifactId>
                        <version>2.17</version>
                        <configuration>
                            <configLocation>checkstyle.xml</configLocation>
                            <encoding>UTF-8</encoding>
                            <consoleOutput>true</consoleOutput>
                            <failsOnError>true</failsOnError>
                            <linkXRef>false</linkXRef>
                        </configuration>
                        <executions>
                            <execution>
                                <id>checkstyle</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>findbugs-maven-plugin</artifactId>
                        <version>3.0.5</version>
                        <configuration>
                            <includeFilterFile>findbugs-include.xml</includeFilterFile>
                            <includeTests>true</includeTests>
                        </configuration>
                        <executions>
                            <execution>
                                <id>findbugs</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>skipChecks</id>
            <activation>
                <property>
                    <name>skipChecks</name>
                </property>
            </activation>
            <modules>
                <module>tests</module>
            </modules>
        </profile>
        <profile>
            <id>skipItTests</id>
        </profile>
    </profiles>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-dispatcher-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>

        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <excludes>
                        <exclude>it/**</exclude>
                    </excludes>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <guava.version>18.0</guava.version>
        <applinks.version>4.1.1</applinks.version>
        <findbugs.version>1.3.7</findbugs.version>
        <amps.version>6.3.15</amps.version>
        <plugin.testrunner.version>1.2.3-bamboo-5</plugin.testrunner.version>

        <!--
        since 4.0.0 product is bitbucket, set stash.or.bitbucket.product to:
        stash when stash.or.bitbucket.version < 4.0.0 bitbucket when stash.or.bitbucket.version >= 4.0.0
        -->
        <stash.or.bitbucket.product>bitbucket</stash.or.bitbucket.product>
        <stash.or.bitbucket.version>4.11.2</stash.or.bitbucket.version>
        <stash.or.bitbucket.port>7990</stash.or.bitbucket.port>
        <bamboo.version>5.14.3.1</bamboo.version>
        <bamboo.data.version>5.9.4</bamboo.data.version>
        <bamboo.port>6990</bamboo.port>
        <bamboo.jvmargs />
        <stash.or.bitbucket.jvmargs />
        <bitbucket.jvmargs />
        <junit.version>4.12</junit.version>
        <hamcrest.version>1.3</hamcrest.version>
        <log4j.version>1.2.16</log4j.version>
        <bitbucket.mirror.contextPath>/mirror</bitbucket.mirror.contextPath>
        <bitbucket.mirror.ajpPort>8010</bitbucket.mirror.ajpPort>
        <bitbucket.mirror.httpPort>7991</bitbucket.mirror.httpPort>
        <bitbucket.mirror.ssh.port>7998</bitbucket.mirror.ssh.port>
        <bitbucket.upstream.contextPath>/bitbucket</bitbucket.upstream.contextPath>
        <bitbucket.upstream.ajpPort>8009</bitbucket.upstream.ajpPort>
        <bitbucket.upstream.httpPort>7990</bitbucket.upstream.httpPort>
        <bitbucket.upstream.ssh.port>7999</bitbucket.upstream.ssh.port>
    </properties>

</project>
