<?xml version="1.0" ?>
<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>public-pom</artifactId>
        <!-- Leave on v6 for Java 8 -->
        <version>6.3.8</version>
    </parent>

    <groupId>com.atlassian</groupId>
    <artifactId>plugins-viewer-parent</artifactId>
    <version>2.2.2</version>
    <packaging>pom</packaging>

    <name>Atlassian plugins viewer</name>
    <description>Plugin subsystem visualiser</description>
    <organization>
        <name>Atlassian</name>
        <url>https://atlassian.com/</url>
    </organization>

    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
            <comments>A business-friendly OSS license</comments>
        </license>
    </licenses>

    <modules>
        <module>dependency-viewer-plugin</module>
    </modules>

    <scm>
        <connection>scm:git:git@bitbucket.org:atlassian/atlassian-plugins-viewer.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:atlassian/atlassian-plugins-viewer.git</developerConnection>
        <url>https://bitbucket.org/atlassian/atlassian-plugins-viewer/</url>
        <tag>plugins-viewer-parent-2.2.2</tag>
    </scm>

    <issueManagement>
        <system>Jira</system>
        <url>https://ecosystem.atlassian.net/browse/PV</url>
    </issueManagement>

    <properties>
        <!-- Leave compiling to 6 so can work with older product versions in AMPS -->
        <platform.compile.version>6.5.34</platform.compile.version>
        <!-- Other dependencies should match that lower feature version -->
        <osgi.core.version>6.0.0</osgi.core.version>

        <amps.version>9.11.1</amps.version>
        <refapp.version>${platform.compile.version}</refapp.version>
        <refapp.platform.7.version>7.2.38</refapp.platform.7.version>
        <refapp.platform.8.version>8.5.1</refapp.platform.8.version>

        <atl.plugins.osgi.javaconfig.version>0.6.0</atl.plugins.osgi.javaconfig.version>

        <junit.version>4.12</junit.version>
        <mockito.version>2.21.0</mockito.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.platform.dependencies</groupId>
                <artifactId>platform-public-api</artifactId>
                <version>${platform.compile.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.platform.dependencies</groupId>
                <artifactId>platform-test-resources</artifactId>
                <version>${platform.compile.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <dependency>
                <groupId>jakarta.inject</groupId>
                <artifactId>jakarta.inject-api</artifactId>
                <version>2.0.1</version>
            </dependency>
            <dependency>
                <groupId>jakarta.servlet</groupId>
                <artifactId>jakarta.servlet-api</artifactId>
                <version>5.0.0</version>
            </dependency>
            <dependency>
                <groupId>jakarta.ws.rs</groupId>
                <artifactId>jakarta.ws.rs-api</artifactId>
                <version>3.0.0</version>
                <scope>provided</scope>
            </dependency>

            <dependency>
                <groupId>com.atlassian.plugins</groupId>
                <artifactId>atlassian-plugins-osgi-javaconfig</artifactId>
                <version>${atl.plugins.osgi.javaconfig.version}</version>
            </dependency>

            <dependency>
                <groupId>org.osgi</groupId>
                <artifactId>osgi.core</artifactId>
                <version>${osgi.core.version}</version>
            </dependency>

            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>amps-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <configuration>
                    <enableQuickReload>true</enableQuickReload>
                    <closureJsdocWarningsEnabled>false</closureJsdocWarningsEnabled>

                    <!-- DO NOT COPY THIS! This is only acceptable here because it WILL NEVER
                            ship in production so there is no need for FE SBOMs -->
                    <skipCopyFeModuleManifests>true</skipCopyFeModuleManifests>
                    <skipReportFeManifestAssociations>true</skipReportFeManifestAssociations>
                    <skipVerifyFeManifestAssociations>true</skipVerifyFeManifestAssociations>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
