<?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-hipchat-emoticons-parent</artifactId>
        <version>3.3.0</version>
    </parent>

    <artifactId>confluence-hipchat-emoticons-plugin</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Confluence Hipchat Emoticons Plugin</name>
    <description>Exposes a linked Hipchat's emoticons for use in the Confluence editor</description>
    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com/</url>
    </organization>
    <licenses>
        <license>
            <name>Atlassian 3.0 End User License Agreement</name>
            <url>http://www.atlassian.com/end-user-agreement/</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.atlassian.util.concurrent</groupId>
            <artifactId>atlassian-util-concurrent</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.labs.hipchat</groupId>
            <artifactId>confluence-hipchat</artifactId>
            <version>${hipchat.integration.plugin.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>base-hipchat-integration-plugin</artifactId>
            <version>${hipchat.integration.plugin.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</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>org.codehaus.woodstox</groupId>
            <artifactId>wstx-asl</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
           <groupId>org.springframework</groupId>
           <artifactId>spring-beans</artifactId>
           <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*</include>
                </includes>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>confluence-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${confluence.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>

                    <closureJsCompiler>true</closureJsCompiler>

                    <instructions>
                        <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
                        <DynamicImport-Package>
                            com.atlassian.hipchat.api;resolution:=optional,
                            com.atlassian.hipchat.api.emoticons;resolution:=optional,
                            com.atlassian.plugins.hipchat.api;resolution:=optional,
                            com.atlassian.plugins.hipchat.api.link;resolution:=optional,
                        </DynamicImport-Package>
                        <Import-Package>
                            <!-- CONF-40717
                                 Must be an explicit imports so that the hipchat api plugin is not pulled in.
                                 DO NOT change to <Import-Package>*</Import-Package> -->
                            com.atlassian.confluence.content.render.xhtml,
                            com.atlassian.confluence.content.render.xhtml.editor.inline,
                            com.atlassian.confluence.content.render.xhtml.model.inline,
                            com.atlassian.confluence.content.render.xhtml.transformers,
                            com.atlassian.confluence.user,
                            com.atlassian.event.api,
                            io.atlassian.fugue,
                            io.atlassian.util.concurrent,
                            com.atlassian.plugins.rest.common.security,
                            com.google.common.base,
                            com.google.common.cache,
                            com.google.common.collect,
                            com.google.common.io,
                            com.google.common.util.concurrent,
                            javax.annotation,
                            javax.ws.rs,
                            javax.xml.namespace,
                            javax.xml.stream,
                            javax.xml.stream.events,
                            org.apache.commons.lang3,
                            org.codehaus.jackson.annotate,
                            org.osgi.framework,
                            org.springframework.beans.factory,
                            org.slf4j,
                        </Import-Package>
                        <Export-Package>
                            com.atlassian.confluence.plugins.hipchat.emoticons.apicheck,
                            com.atlassian.confluence.plugins.hipchat.emoticons.linkservice,
                            com.atlassian.confluence.plugins.hipchat.emoticons.marshalling,
                            com.atlassian.confluence.plugins.hipchat.emoticons.rest,
                            com.atlassian.confluence.plugins.hipchat.emoticons.service,
                            com.atlassian.confluence.plugins.hipchat.emoticons,
                        </Export-Package>
                    </instructions>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>base-hipchat-integration-plugin</artifactId>
                            <version>${hipchat.integration.plugin.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.plugins</groupId>
                            <artifactId>base-hipchat-integration-plugin-api</artifactId>
                            <version>${hipchat.integration.plugin.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.confluence.plugins</groupId>
                            <artifactId>confluence-hipchat-integration-plugin</artifactId>
                            <version>${hipchat.integration.plugin.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <enableDevToolbox>false</enableDevToolbox>
                    <enablePde>false</enablePde>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
