<?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.0.0</version>
    <packaging>pom</packaging>

    <modules>
        <module>atlassian-audit-api</module>
        <module>atlassian-audit-osgi</module>
        <module>atlassian-audit-demo-osgi</module>
        <module>atlassian-audit-demo-spring</module>
        <module>atlassian-audit-core</module>
        <module>atlassian-audit-platform-mock</module>
        <module>atlassian-audit-rest-plugin</module>
        <module>atlassian-audit-frontend</module>
        <module>atlassian-audit-jira-converter</module>
        <module>atlassian-audit-hack-integration</module>
        <module>atlassian-audit-demo-module-descriptors</module>
        <module>atlassian-audit-module-descriptors</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.0.0</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.11.1</assertj.version>

        <!-- product config -->
        <jira.version>8.4.2</jira.version>

        <bitbucket.version>6.7.0</bitbucket.version>
        <bitbucket.http.port>7990</bitbucket.http.port>
        <bitbucket.context.path>bitbucket</bitbucket.context.path>
        <bitbucket.data.version>${bitbucket.version}</bitbucket.data.version>
        <baseurl.bitbucket>http://localhost:${bitbucket.http.port}/${bitbucket.context.path}</baseurl.bitbucket>

        <confluence.version>7.0.1</confluence.version>
        <confluence.data.version>${confluence.version}</confluence.data.version>

        <refapp.version>5.1.2</refapp.version>

        <xvfb.enable>true</xvfb.enable>
        <xvfb.display>:0</xvfb.display>
    </properties>

    <dependencyManagement>
        <dependencies>
            <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>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>
        </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>
