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

    <parent>
        <groupId>com.atlassian.pom</groupId>
        <artifactId>closedsource-private-pom</artifactId>
        <version>6.3.4</version>
    </parent>

    <groupId>com.atlassian.servicedesk</groupId>
    <artifactId>jira-servicedesk-application-parent</artifactId>
    <version>10.3.0</version>

    <modelVersion>4.0.0</modelVersion>

    <name>JIRA Service Management Parent POM</name>
    <description>JIRA Service Management application definition.</description>
    <packaging>pom</packaging>

    <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>
        <!--
            When adding a new module to this project, be sure to manage it to the current version (in this POM) and
            add a provided <dependency> on it to the application plugin POM, even if it's not a bundled plugin!

            If the application plugin only depends on the module through one or more bundled plugins that live outside
            this repository, Maven will refuse to build the application plugin until it has access to an artifact for
            the module, even though no such artifact could possibly affect the resultant OBR at this point.

            This won't happen if such an artifact happens to be installed in a local or remote repository, but there
            are many reasons why this might not be the case, so you can guarantee success by overriding the versions
            of all of these spurious dependencies and satisfying them with artifacts that Maven has just built.
        -->
        <module>jira-servicedesk-application</module>
        <module>sd-public-api</module>
        <module>sd-public-rest-api</module>
        <module>automation</module>
    </modules>

    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com</url>
    </organization>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>${jdkLevel}</source>
                    <target>${jdkLevel}</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>jira-maven-plugin</artifactId>
                <version>${amps.version}</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <doclint>none</doclint>
                </configuration>
                <executions>
                    <execution>
                        <inherited>false</inherited>
                        <id>aggregate-documentation</id>
                        <phase>package</phase>
                        <goals>
                            <goal>aggregate-jar</goal>
                        </goals>
                        <configuration>
                            <doctitle>Jira Service Management ${project.version} API</doctitle>
                            <windowtitle>Jira Service Management ${project.version} API</windowtitle>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-api-bom</artifactId>
                <version>${jira.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-internal-bom</artifactId>
                <version>${jira.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.jira</groupId>
                <artifactId>jira-bundled-plugins-bom</artifactId>
                <version>${jira.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- see <modules> in this POM -->

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>jira-servicedesk-api</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>jira-servicedesk-rest-api</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>jira-servicedesk-automation-api</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>${project.groupId}</groupId>
                <artifactId>jira-servicedesk-automation-spi</artifactId>
                <version>${project.version}</version>
            </dependency>

            <!-- jira-servicedesk-api -->

            <dependency>
                <groupId>org.joda</groupId>
                <artifactId>joda-convert</artifactId>
                <version>${joda.convert.version}</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>com.atlassian.pocketknife</groupId>
                <artifactId>atlassian-pocketknife-api-commons-jira</artifactId>
                <version>${pocketknife.api.commons.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.pocketknife</groupId>
                <artifactId>atlassian-pocketknife-api-commons</artifactId>
                <version>${pocketknife.api.commons.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.pocketknife</groupId>
                <artifactId>atlassian-pocketknife-api-commons-plugin</artifactId>
                <version>${pocketknife.api.commons.version}</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>io.atlassian.util.concurrent</groupId>
                <artifactId>atlassian-util-concurrent</artifactId>
                <version>${atlassian.util.concurrent.version}</version>
            </dependency>

            <!-- jira-servicedesk-rest-api -->

            <!-- jira-servicedesk-api + jira-servicedesk-rest-api -->

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

        </dependencies>

    </dependencyManagement>

    <properties>
        <!-- Don't override jira.version and servicedesk.version when merge to platform -->
        <!-- Jira version that we compile, test and run against -->
        <!-- This is the *minimal compatible version* of Jira's REST & Java APIs. -->
        <jira.version>10.2.0-QR-20241029111925</jira.version>
        <servicedesk.version>20.3.0-REL-0002</servicedesk.version>

        <!-- Core -->
        <amps.version>8.17.0</amps.version>
        <automation.version>${servicedesk.version}</automation.version>
        <timed.promise.version>${servicedesk.version}</timed.promise.version>
        <jira.email.processor.plugin.version>${servicedesk.version}</jira.email.processor.plugin.version>
        <atlassian.client.resource.version>${servicedesk.version}</atlassian.client.resource.version>
        <pocketknife.api.commons.version>1.0.10</pocketknife.api.commons.version>

        <!-- Language packs -->
        <language.pack.german>4.23.0.v20241126232104</language.pack.german>
        <language.pack.french>4.23.0.v20241126232104</language.pack.french>
        <language.pack.japanese>4.23.0.v20241126232104</language.pack.japanese>
        <language.pack.spanish>4.23.0.v20241126232104</language.pack.spanish>
        <language.pack.korean>4.23.0.v20241126232104</language.pack.korean>
        <language.pack.brazil>4.23.0.v20241126232104</language.pack.brazil>
        <language.pack.portugese>4.11.rc2.v20200624</language.pack.portugese><!-- no longer supported -->
        <language.pack.russian>4.23.0.v20241126232104</language.pack.russian>
        <language.pack.sweden>4.23.0.v20241126232104</language.pack.sweden>
        <language.pack.slovak>4.11.rc2.v20200624</language.pack.slovak><!-- no longer supported -->
        <language.pack.italian>4.23.0.v20241126232104</language.pack.italian>
        <language.pack.romanian>3.9.0.m0124-v2r588-2017-10-26</language.pack.romanian><!-- no longer supported -->
        <language.pack.polish>4.23.0.v20241126232104</language.pack.polish>
        <language.pack.norwegian>4.23.0.v20241126232104</language.pack.norwegian>
        <language.pack.icelandic>3.9.0.m0124-v2r106-2017-10-26</language.pack.icelandic><!-- no longer supported -->
        <language.pack.hungarian>4.23.0.v20241126232104</language.pack.hungarian>
        <language.pack.estonian>4.11.rc2.v20200624</language.pack.estonian><!-- no longer supported -->
        <language.pack.danish>4.23.0.v20241126232104</language.pack.danish>
        <language.pack.czech>4.23.0.v20241126232104</language.pack.czech>
        <language.pack.finnish>4.23.0.v20241126232104</language.pack.finnish>
        <language.pack.chinese.simplified>4.23.0.v20241126232104</language.pack.chinese.simplified>
        <language.pack.dutch>4.23.0.v20241126232104</language.pack.dutch>

        <!-- jira-servicedesk-api -->
        <atlassian.annotations.version>2.1.0</atlassian.annotations.version>
        <atlassian.util.concurrent.version>4.1.0</atlassian.util.concurrent.version>
        <javadoc.additional.params>-Xdoclint:none</javadoc.additional.params>

        <!-- thirdparty -->
        <joda.convert.version>1.1</joda.convert.version>

        <!-- Test -->
        <atlassian.selenium.version>2.3-m01</atlassian.selenium.version>
        <xvfb.enable>false</xvfb.enable>
        <junit.version>4.13.2</junit.version>

        <!-- Skip all of the tests -->
        <skipTests>false</skipTests>

        <!-- Skip only the integration tests -->
        <skipITs>${skipTests}</skipITs>

        <!-- Skip most of the unit tests. Can't seem to skip them all -->
        <skipUTs>${skipTests}</skipUTs>

        <!-- Take out when we don't use rc versions of jira and servicedesk -->
        <failOnMilestoneOrReleaseCandidateDeps>false</failOnMilestoneOrReleaseCandidateDeps>

        <!-- this is specified in base-pom and is used to specify the Java Version for this plugin -->
        <jdkLevel>17</jdkLevel>
        <!-- maven-compiler-plugin config -->
        <maven.compiler.source>${jdkLevel}</maven.compiler.source>
        <maven.compiler.target>${jdkLevel}</maven.compiler.target>

        <!-- maven-javadoc-plugin config -->
        <maven.javadoc.skip>true</maven.javadoc.skip>
    </properties>

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

    <profiles>
        <profile>
            <id>release-profile</id>
            <properties>
                <maven.javadoc.skip>false</maven.javadoc.skip>
            </properties>
        </profile>
    </profiles>

</project>