<?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">
    <parent>
        <artifactId>confluence-plugins</artifactId>
        <groupId>com.atlassian.confluence</groupId>
        <version>10.0.0-m20</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>confluence-plugins-platform-pom</artifactId>
    <packaging>pom</packaging>

    <name>Confluence Plugins Platform POM</name>
    <description>
        This pom is intended to be used by plugins which are built outside of the scope of the main Confluence project.
        It acts as a way of managing the dependencies of those plugins so that they match the Confluence version.

        It means that the plugins no longer have to manually specify the version of stuff like atlassian-rest-common
        so that it matches the Confluence version, they can just inherit the managed version.

        e.g.

        <![CDATA[
        <dependencyManagement>
            <dependencies>
                <dependency>
                    <groupId>com.atlassian.confluence</groupId>
                    <artifactId>confluence-plugins-platform-pom</artifactId>
                    <version>${confluence.version}</version>
                    <type>pom</type>
                    <scope>import</scope>
                </dependency>
            </dependencies>
        </dependencyManagement>
        ]]>

    </description>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <!-- Deprecated dependency, plugins should migrate to org.hamcrest:hamcrest -->
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-core</artifactId>
                <version>1.3</version>
            </dependency>
            <dependency>
                <!-- Deprecated dependency, plugins should migrate to org.hamcrest:hamcrest -->
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-library</artifactId>
                <version>1.3</version>
            </dependency>
            <dependency>
                <groupId>org.apache.tomcat</groupId>
                <artifactId>${tomcat.artifactId}</artifactId>
                <version>${tomcat.artifact.version}</version>
                <type>zip</type>
                <classifier>windows-x64</classifier>
            </dependency>

            <dependency>
                <groupId>jakarta.ws.rs</groupId>
                <artifactId>jakarta.ws.rs-api</artifactId>
                <version>${jakarta.ws.rs-api.version}</version>
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey</groupId>
                <artifactId>jersey-bom</artifactId>
                <version>${jersey2.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>
