<?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>atlassian-closedsource-pom</artifactId>
        <version>24</version>
    </parent>

    <groupId>com.atlassian.mywork</groupId>
    <artifactId>mywork-project</artifactId>
    <version>1.8</version>

    <name>Workbox</name>
    <packaging>pom</packaging>

    <scm>
        <connection>scm:git:hg@bitbucket.org:atlassian/myworkday.git</connection>
        <developerConnection>scm:git:hg@bitbucket.org:atlassian/myworkday.git</developerConnection>
        <url>https://bitbucket.org/atlassian/myworkday</url>
    </scm>

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

    <modules>
        <module>mywork-acceptance-test-runner</module>
        <module>mywork-acceptance-tests</module>
        <module>mywork-api</module>
        <module>mywork-common-plugin</module>
        <module>mywork-confluence-host-plugin</module>
        <module>mywork-confluence-provider-plugin</module>
        <module>mywork-jira-provider-plugin</module>
        <module>mywork-pageobjects</module>
        <module>mywork-confluence-plugin</module>
        <module>mywork-jira-plugin</module>
    </modules>

    <properties>
        <xvfb.enable>true</xvfb.enable>
        <os.arch.override>${os.arch}</os.arch.override>
        <jira.version>6.1-m04</jira.version>
        <sal.api.version>2.10.3</sal.api.version>
        <fugue.version>1.1</fugue.version>
        <!-- TODO: Update to use a "proper" version once there is one available with IsConfluenceSpacesLicensedCondition in it -->
        <confluence.api.version>5.5-CONF-24785-m5</confluence.api.version>
        <confluence.version>${confluence.api.version}</confluence.version>
        <ao.version>0.19.9</ao.version>
        <spring.version>2.5.6.SEC02</spring.version>
        <applinks.version>3.6.2</applinks.version>
        <jersey.contrib.version>1.8</jersey.contrib.version>
        <product.name>Workbox</product.name>
        <root.dir>.</root.dir>
        <!-- Used by amps:cli -->
        <http.port>1990</http.port>
        <context.path>/confluence</context.path>
        <atlassian.selenium.version>2.1.0-m12</atlassian.selenium.version>
    </properties>

    <profiles>
        <profile>
            <id>use-xvfb-only-for-headless-builds</id>
            <activation>
                <property>
                    <name>env.DISPLAY</name>
                </property>
            </activation>
            <properties>
                <xvfb.enable>false</xvfb.enable>
            </properties>
        </profile>
        <profile>
            <id>skipTests</id>
            <properties>
                <skipTests>true</skipTests>
            </properties>
        </profile>
    </profiles>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-plugin</artifactId>
                    <version>3.9.3</version>
                </plugin>
                <plugin>
                    <groupId>net.sf.alchim</groupId>
                    <artifactId>yuicompressor-maven-plugin</artifactId>
                    <!-- 0.7.1 was the implicit version before the version was specified -->
                    <version>0.7.1</version>
                </plugin>
                <plugin>
                    <groupId>org.twdata.maven</groupId>
                    <artifactId>cargo-maven2-plugin</artifactId>
                    <!-- 1.0-beta-2-db2 was the implicit version before the version was specified -->
                    <version>1.0-beta-2-db2</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.1</version>
                    <dependencies>
                        <!-- Fix for SCM-574 -->
                        <dependency>
                            <groupId>org.apache.maven.scm</groupId>
                            <artifactId>maven-scm-provider-gitexe</artifactId>
                            <version>1.5</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <!-- Needed by https://bamboo.extranet.atlassian.com/browse/MWD-RELEASE -->
                        <arguments>-Prelease -DskipTests -Dnat.generateDocs=true</arguments>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>2.4</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                    </configuration>
                </plugin>
                <plugin>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <excludes>
                            <exclude>it/**</exclude>
                        </excludes>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>findbugs-maven-plugin</artifactId>
                <version>2.3.3</version>
                <configuration>
                    <skip>${skipTests}</skip>
                </configuration>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.8</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                    <consoleOutput>true</consoleOutput>
                    <configLocation>${root.dir}/config/atlassian_checks.xml</configLocation>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>2.5</version>
            </dependency>

            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>10.0.1</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.fugue</groupId>
                <artifactId>fugue</artifactId>
                <version>1.0.1</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.util.concurrent</groupId>
                <artifactId>atlassian-util-concurrent</artifactId>
                <version>2.3.0</version>
            </dependency>

            <dependency>
                <groupId>org.codehaus.jackson</groupId>
                <artifactId>jackson-core-asl</artifactId>
                <version>1.9.1</version>
            </dependency>

            <dependency>
                <groupId>org.codehaus.jackson</groupId>
                <artifactId>jackson-mapper-asl</artifactId>
                <version>1.9.1</version>
            </dependency>

            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>2.4</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.plugins.rest</groupId>
                <artifactId>atlassian-rest-common</artifactId>
                <version>2.8.0-m7</version>
            </dependency>

            <dependency>
                <groupId>org.quartz-scheduler</groupId>
                <artifactId>quartz</artifactId>
                <version>2.1.2</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>1.5.8</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>1.5.8</version>
            </dependency>

            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>1.5.8</version>
            </dependency>

            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.8.1</version>
            </dependency>

            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-library</artifactId>
                <version>1.1</version>
            </dependency>

            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>1.8.5</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.browsers</groupId>
                <artifactId>atlassian-browsers-auto</artifactId>
                <version>2.3.1</version>
            </dependency>

            <dependency>
                <groupId>com.atlassian.browsers</groupId>
                <artifactId>atlassian-browsers-linux64</artifactId>
                <version>2.3.1</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

</project>
