<?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">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.atlassian.confluence.plugins</groupId>
        <artifactId>confluence-notifications-plugins-parent</artifactId>
        <version>9.2.4</version>
    </parent>

    <artifactId>confluence-content-notifications-plugin</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Confluence Content Notifications Plugin</name>
    <description>Declares the Confluence Content Notifications.</description>

    <properties>
        <project.root.directory>${project.basedir}/../..</project.root.directory>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.plugin.notifications</groupId>
            <artifactId>notifications-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-notifications-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-notifications-batch-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-notifications-common-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-content-notifications-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-notifications-spi-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.healthcheck</groupId>
            <artifactId>atlassian-healthcheck</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.annotations</groupId>
            <artifactId>atlassian-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>nl.jqno.equalsverifier</groupId>
            <artifactId>equalsverifier</artifactId>
            <version>2.2</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>confluence-notifications-batch-plugin</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>confluence-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Import-Package>
                            com.atlassian.confluence.event.events.content.page,
                            com.atlassian.confluence.notifications;version="${project.version}",
                            com.atlassian.confluence.notifications.batch.service;version="${project.version}",
                            com.atlassian.healthcheck.core*,
                            *
                        </Import-Package>
                        <Export-Package>
                            com.atlassian.confluence.notifications.content;version=${project.version},
                            com.atlassian.confluence.notifications.content.batching;version=${project.version},
                            com.atlassian.confluence.notifications.content.context.email;version=${project.version},
                            com.atlassian.confluence.notifications.content.context.email.batch;version=${project.version},
                            com.atlassian.confluence.notifications.content.recipients;version${project.version}
                        </Export-Package>
                    </instructions>
                    <bundledArtifacts combine.children="append">
                        <bundledArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>confluence-notifications-spi-plugin</artifactId>
                            <version>${project.version}</version>
                            <type>jar</type>
                        </bundledArtifact>
                        <bundledArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>confluence-email-notifications-plugin</artifactId>
                            <version>${project.version}</version>
                        </bundledArtifact>
                        <bundledArtifact>
                            <groupId>${project.groupId}</groupId>
                            <artifactId>confluence-notifications-batch-plugin</artifactId>
                            <version>${project.version}</version>
                        </bundledArtifact>
                    </bundledArtifacts>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <configuration>
                    <excludeTransitive>true</excludeTransitive>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
