<?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>6.5.0-m22</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 mmeans 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>
            <!-- Workaround for plugins that rely on Confluence exporting a junit-dep version. These would otherwise
             break now that core only uses junit:junit:4.12 -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit-dep</artifactId>
                <version>4.10</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>
