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

    <groupId>com.atlassian.jira</groupId>
    <artifactId>jira-software-application-parent</artifactId>
    <version>8.10.2-int-0032</version>
    <packaging>pom</packaging>

    <name>Jira Software Application Parent POM</name>
    <description>Definition of the Jira Software Application</description>
    <licenses>
        <license>
            <distribution>repo</distribution>
            <name>Atlassian 3.0 End User License Agreement</name>
            <url>http://www.atlassian.com/end-user-agreement/</url>
        </license>
    </licenses>

    <modules>
        <module>jira-software-application</module>
        <module>jira-software-plugins</module>
    </modules>

    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/jswserver/jira-software-application.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/jswserver/jira-software-application.git</developerConnection>
        <url>https://stash.atlassian.com/projects/JSWSERVER/repos/jira-software-application</url>
        <tag>HEAD</tag>
    </scm>

    <properties>
        <jira.version>8.10.2-QR-20201124145335</jira.version>
        <!-- Line break to avoid merge conflicts with adjacent lines -->
        <amps.version>8.0.2-decafc995</amps.version>
        <!-- Line break to avoid merge conflicts with adjacent lines -->
        <testkit.version>8.1.15</testkit.version>
        <servlet-api-version>3.0.1</servlet-api-version>

        <!-- Line break to avoid merge conflicts with adjacent lines -->
        <dev.status.version>5.7.2</dev.status.version>
        <!-- Line break to avoid merge conflicts with adjacent lines -->
        <dvcs.version>5.2.10</dvcs.version>
        <!-- Line break to avoid merge conflicts with adjacent lines -->
        <software-language-pack.version>8.10.0.v20200618000000</software-language-pack.version>
        <software-language-pack-de_DE.version>${software-language-pack.version}</software-language-pack-de_DE.version>
        <software-language-pack-es_ES.version>${software-language-pack.version}</software-language-pack-es_ES.version>
        <software-language-pack-fr_FR.version>${software-language-pack.version}</software-language-pack-fr_FR.version>
        <software-language-pack-ja_JP.version>${software-language-pack.version}</software-language-pack-ja_JP.version>
        <software-language-pack-ru_RU.version>${software-language-pack.version}</software-language-pack-ru_RU.version>
        <software-language-pack-pt_BR.version>${software-language-pack.version}</software-language-pack-pt_BR.version>
        <software-language-pack-ko_KR.version>${software-language-pack.version}</software-language-pack-ko_KR.version>
        <software-language-pack-en_US.version>${software-language-pack.version}</software-language-pack-en_US.version>
        <software-language-pack-zh_CN.version>${software-language-pack.version}</software-language-pack-zh_CN.version>
        <software-language-pack-cs_CZ.version>${software-language-pack.version}</software-language-pack-cs_CZ.version>
        <software-language-pack-et_EE.version>${software-language-pack.version}</software-language-pack-et_EE.version>
        <software-language-pack-da_DK.version>${software-language-pack.version}</software-language-pack-da_DK.version>
        <software-language-pack-is_IS.version>${software-language-pack.version}</software-language-pack-is_IS.version>
        <software-language-pack-no_NO.version>${software-language-pack.version}</software-language-pack-no_NO.version>
        <software-language-pack-ro_RO.version>${software-language-pack.version}</software-language-pack-ro_RO.version>
        <software-language-pack-sk_SK.version>${software-language-pack.version}</software-language-pack-sk_SK.version>
        <software-language-pack-pl_PL.version>${software-language-pack.version}</software-language-pack-pl_PL.version>
        <software-language-pack-sv_SE.version>${software-language-pack.version}</software-language-pack-sv_SE.version>
        <software-language-pack-hu_HU.version>${software-language-pack.version}</software-language-pack-hu_HU.version>
        <software-language-pack-fi_FI.version>${software-language-pack.version}</software-language-pack-fi_FI.version>
        <software-language-pack-it_IT.version>${software-language-pack.version}</software-language-pack-it_IT.version>
        <software-language-pack-nl_NL.version>${software-language-pack.version}</software-language-pack-nl_NL.version>

        <!-- Target JDK 8 -->
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>

        <nexus.staging.autoRelease>true</nexus.staging.autoRelease>

        <thirdpartylicensing.dir>${user.dir}/third-party-licensing</thirdpartylicensing.dir>
        <thirdpartylicensing.licenses>${thirdpartylicensing.dir}/licenses/</thirdpartylicensing.licenses>
        <thirdpartylicensing.bom>${thirdpartylicensing.dir}/bom.csv</thirdpartylicensing.bom>
        <thirdpartylicensing.deployBom>false</thirdpartylicensing.deployBom>
        <!--code coverage-->
        <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
        <sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
        <sonar.language>java</sonar.language>
        <sonar.coverage.exclusions>jira-software-application/**, scripts/**, third-party-licensing/**, jira-software-plugins/jira-agile/greenhopper-integration-test/**</sonar.coverage.exclusions>
        <jacocoArgLine/>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-software-monitor-plugin</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-software-plugin</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-greenhopper-plugin</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-development-integration-plugin</artifactId>
                <version>${dev.status.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-fisheye-plugin</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-bamboo-plugin</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-dvcs-connector-plugin</artifactId>
                <version>${dvcs.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira.plugins</groupId>
                <artifactId>jira-transition-triggers-plugin</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian</groupId>
                <artifactId>atlassian-test-categories</artifactId>
                <version>0.5</version>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.12</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>atlassian-jira-pageobjects</artifactId>
                <version>${jira.version}</version>
            </dependency>
            <dependency>
                <groupId>io.atlassian.util.concurrent</groupId>
                <artifactId>atlassian-util-concurrent</artifactId>
                <version>4.0.1</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient-cache</artifactId>
                <version>4.2.1-atlassian-2</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>sandbox-maven-plugin</artifactId>
                <version>2.1-beta15</version>
                <executions>
                    <execution>
                        <id>enable-sandbox</id>
                        <phase>validate</phase>
                        <goals>
                            <goal>sandbox</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <!-- This plugin has aggregator-style goals. Check BUILDENG-4706 for more details why it should never
                      be called from inside the normal lifecycle -->
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>license-maven-plugin</artifactId>
                <version>0.42</version>
                <configuration>
                    <licensesDirectory>${thirdpartylicensing.licenses}</licensesDirectory>
                    <bomFile>${thirdpartylicensing.bom}</bomFile>
                    <nonMavenDependenciesFile>${thirdpartylicensing.dir}/missing-non-maven-dependencies.properties</nonMavenDependenciesFile>
                    <deployBom>${thirdpartylicensing.deployBom}</deployBom>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <!--code coverage-->
                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>0.8.4</version>
                </plugin>
            </plugins>
        </pluginManagement>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav-jackrabbit</artifactId>
                <version>1.0</version>
            </extension>
        </extensions>
    </build>
    <profiles>
        <!--code coverage-->
        <profile>
            <id>jacoco</id>
            <properties>
                <jacocoArgLine>${argLine}</jacocoArgLine>
            </properties>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>prepare-agent</id>
                                <goals>
                                    <goal>prepare-agent</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-surefire-plugin</artifactId>
                        <configuration>
                            <argLine>${jacocoArgLine}</argLine>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>jira-maven-plugin</artifactId>
                        <version>${amps.version}</version>
                        <configuration>
                            <jvmArgs>${jacocoArgLine}</jvmArgs>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
