<?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-inbound-email-parent</artifactId>
        <version>5.9.3</version>
    </parent>

    <artifactId>confluence-email-gateway</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Confluence Email Gateway</name>
    <description>This allows users to create content by sending an email to Confluence.</description>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.xml.stream</groupId>
            <artifactId>stax-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>com.atlassian.jersey-library</artifactId>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence.plugins</groupId>
            <artifactId>share-page</artifactId>
            <version>${atlassian.share-page.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.codehaus.woodstox</groupId>
            <artifactId>wstx-asl</artifactId>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>confluence-maven-plugin</artifactId>
                <configuration>
                    <skipAllPrompts>true</skipAllPrompts>
                    <extractDependencies>false</extractDependencies>
                    <instructions>
                        <Import-Package>
                            com.atlassian.confluence.xhtml.api,
                            com.atlassian.confluence.content.render.xhtml,
                            com.atlassian.confluence.content.render.xhtml.model.inline,
                            com.atlassian.confluence.content.render.xhtml.model.inlinetask,
                            com.atlassian.confluence.content.render.xhtml.editor,
                            com.atlassian.confluence.content.render.xhtml.links,
                            com.atlassian.confluence.content.render.xhtml.storage.macro.inlinebody,
                            com.atlassian.confluence.content.render.xhtml.macro,
                            com.atlassian.confluence.content.render.xhtml.transformers,
                            com.atlassian.confluence.plugins.createcontent.extensions,
                            com.sun.mail.imap,
                            com.sun.mail.smtp,
                            com.sun.mail.pop3,
                            *
                        </Import-Package>
                        <Export-Package>
                            com.atlassian.confluence.plugins.emailgateway.api*
                        </Export-Package>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
