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

    <groupId>com.atlassian.audit</groupId>
    <artifactId>atlassian-audit</artifactId>
    <version>1.8.5</version>
    <packaging>pom</packaging>

    <modules>
        <module>atlassian-audit-api</module>
        <module>atlassian-audit-core</module>
        <module>atlassian-audit-plugin</module>
        <module>atlassian-audit-jira-converter</module>
        <module>atlassian-audit-performance-tests</module>
        <module>atlassian-audit-integration-tests</module>
        <module>atlassian-audit-pageobjects</module>
        <module>atlassian-audit-example</module>
        <module>atlassian-audit-spi</module>
        <module>atlassian-audit-test-utils</module>
        <module>atlassian-audit-rest-model</module>
    </modules>

    <scm>
        <connection>scm:git:git@bitbucket.org:atlassian/atlassian-audit.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:atlassian/atlassian-audit.git</developerConnection>
        <url>https://bitbucket.org/atlassian/atlassian-audit</url>
        <tag>atlassian-audit-1.8.5</tag>
    </scm>

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
        <platform.version>5.0.13</platform.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <atlassian.spring.scanner.version>2.2.0</atlassian.spring.scanner.version>
        <amps.version>8.0.2</amps.version>
        <assertj.version>3.13.2</assertj.version>
        <fasterxml.jackson.version>2.10.0</fasterxml.jackson.version>
        <atlassian.ao.version>3.2.3</atlassian.ao.version>
        <supercsv.version>2.1.0</supercsv.version>
        <diagnostics.version>1.1.10</diagnostics.version>

        <!-- product config -->
        <jira.version>8.8.0-m0003</jira.version>

        <bitbucket.version>7.1.0-auditing-m1</bitbucket.version>
        <bitbucket.http.port>7990</bitbucket.http.port>
        <bitbucket.context.path>bitbucket</bitbucket.context.path>
        <bitbucket.data.version>${bitbucket.version}</bitbucket.data.version>

        <confluence.version>7.5.0-CONFDEVSRV-49-m01</confluence.version>
        <confluence.data.version>${confluence.version}</confluence.data.version>

        <refapp.version>5.1.3-c622f73f</refapp.version>

        <xvfb.enable>true</xvfb.enable>
        <xvfb.display>:0</xvfb.display>
        <webresource.version>4.1.3</webresource.version>
        <json.version>0.9</json.version>
        <!-- Jira 5.8.0, Bitbucket 5.8.1, Conf 5.6.0 -->
        <analytics.version>5.6.0</analytics.version>
        <sal.version>4.1.0</sal.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- https://hello.atlassian.net/wiki/spaces/AB/blog/2019/10/30/579112669/dom4j-1.6.1-atlassian-2+released -->
            <dependency>
                <groupId>dom4j</groupId>
                <artifactId>dom4j</artifactId>
                <version>1.6.1-atlassian-2</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.platform</groupId>
                <artifactId>platform</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.platform</groupId>
                <artifactId>third-party</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-webresource</artifactId>
                <version>${webresource.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.json</groupId>
                <artifactId>atlassian-json-api</artifactId>
                <version>${json.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.analytics</groupId>
                <artifactId>analytics-api</artifactId>
                <version>${analytics.version}</version>
            </dependency>

            <!-- we can let platform pom manage this once we bump the platform pom to 5.1.X -->
            <dependency>
                <groupId>com.atlassian.sal</groupId>
                <artifactId>sal-api</artifactId>
                <version>${sal.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.upgrade</groupId>
                <artifactId>upgrade-task-framework-api</artifactId>
                <version>2.0.2</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.12</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>${assertj.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>net.sf.supercsv</groupId>
                <artifactId>super-csv</artifactId>
                <version>${supercsv.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.diagnostics</groupId>
                <artifactId>atlassian-diagnostics-api</artifactId>
                <version>${diagnostics.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>3.0.0</version>
                <configuration>
                    <configLocation>checkstyle.xml</configLocation>
                    <encoding>${source.encoding}</encoding>
                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
                    <consoleOutput>true</consoleOutput>
                    <excludes>**/atlassian/crowd/**/*.java</excludes>
                </configuration>
                <dependencies>
                    <!-- If you update versions for Checkstyle or either of the custom check jars, you need to
                         make matching changes in etc/git-hooks/pre-commit -->
                    <dependency>
                        <groupId>com.puppycrawl.tools</groupId>
                        <artifactId>checkstyle</artifactId>
                        <version>8.20</version>
                    </dependency>
                    <dependency>
                        <groupId>com.atlassian</groupId>
                        <artifactId>checkstyle-custom-checks</artifactId>
                        <version>1.0.0</version>
                        <exclusions>
                            <exclusion>
                                <groupId>checkstyle</groupId>
                                <artifactId>checkstyle</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>tidy-maven-plugin</artifactId>
                <version>1.1.0</version>
                <executions>
                    <execution>
                        <id>validate</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
