<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.atlassian.mywork</groupId>
        <artifactId>mywork-project</artifactId>
        <version>18.9.16</version>
    </parent>

    <artifactId>mywork-confluence-plugin</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Workbox - Confluence Plugin</name>
    <description>Plugin for Confluence</description>

    <properties>
        <root.dir>..</root.dir>
    </properties>

    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>mywork-common-plugin</artifactId>
            <version>${project.version}</version>
            <type>atlassian-plugin</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>mywork-confluence-provider-plugin</artifactId>
            <version>${project.version}</version>
            <type>atlassian-plugin</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>mywork-confluence-host-plugin</artifactId>
            <version>${project.version}</version>
            <type>atlassian-plugin</type>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>amps-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <containerId>${container}</containerId>
                    <pluginDependencies>
                        <pluginDependency>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>mywork-common-plugin</artifactId>
                        </pluginDependency>
                        <pluginDependency>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>mywork-confluence-provider-plugin</artifactId>
                        </pluginDependency>
                        <pluginDependency>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>mywork-confluence-host-plugin</artifactId>
                        </pluginDependency>
                    </pluginDependencies>
                    <instructions>
                        <CONF_COMM />
                        <Import-Package>
                            com.atlassian.mywork.client.service,
                            com.atlassian.mywork.providers.confluence,
                            com.atlassian.mywork.host.service,
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>skipTests</id>
            <properties>
                <skipTests>true</skipTests>
            </properties>
        </profile>
    </profiles>
</project>
