<?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.plugins</groupId>
        <artifactId>atlassian-hipchat-integration-parent</artifactId>
        <version>6.25.3-D20150506T040230</version>
    </parent>

    <artifactId>base-hipchat-integration-plugin-api</artifactId>
    <packaging>atlassian-plugin</packaging>
    <name>Atlassian Hipchat Integration Plugin Core</name>
    <description>This plugin provides an API allowing products to integrate with HipChat.</description>

    <dependencies>
        <!-- Runtime dependencies -->
        <dependency>
            <groupId>com.atlassian.annotations</groupId>
            <artifactId>atlassian-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.fugue</groupId>
            <artifactId>fugue</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.applinks</groupId>
            <artifactId>applinks-host</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.activeobjects</groupId>
            <artifactId>activeobjects-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-core-asl</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.util.concurrent</groupId>
            <artifactId>atlassian-util-concurrent</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.analytics</groupId>
            <artifactId>analytics-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.json</groupId>
            <artifactId>atlassian-json-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webfragment</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins.rest</groupId>
            <artifactId>atlassian-rest-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.beehive</groupId>
            <artifactId>beehive-compat</artifactId>
        </dependency>

        <!-- compile time dependencies -->
        <dependency>
            <groupId>com.atlassian.hipchat</groupId>
            <artifactId>hipchat-java-api</artifactId>
            <scope>compile</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.cache</groupId>
            <artifactId>atlassian-cache-compat</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <!-- TODO: make provided if it is provided in osgi in the future -->
            <groupId>joda-time</groupId>
            <artifactId>joda-time</artifactId>
        </dependency>

        <!-- Test dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.hamcrest</groupId>
                    <artifactId>hamcrest-core</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-amps-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
                        <Export-Package>
                            com.atlassian.hipchat.api;version="${project.version}",
                            com.atlassian.hipchat.api.capabilities;version="${project.version}",
                            com.atlassian.hipchat.api.addons;version="${project.version}",
                            com.atlassian.hipchat.api.connect;version="${project.version}",
                            com.atlassian.hipchat.api.connect.descriptor;version="${project.version}",
                            com.atlassian.hipchat.api.groups;version="${project.version}",
                            com.atlassian.hipchat.api.emoticons;version="${project.version}",
                            com.atlassian.hipchat.api.icons;version="${project.version}",
                            com.atlassian.hipchat.api.session;version="${project.version}",
                            com.atlassian.hipchat.api.users;version="${project.version}",
                            com.atlassian.hipchat.api.rooms*;version="${project.version}",
                            com.atlassian.hipchat.api.webhooks;version="${project.version}",
                            com.atlassian.plugins.hipchat.api;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.client;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.compat;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.compat.legacy;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.condition;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.descriptor;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.events;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.install;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.json;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.link;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.notification;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.oauth2;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.room;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.routes;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.user;version="${project.version}",
                            com.atlassian.plugins.hipchat.api.webhooks;version="${project.version}",
                            com.atlassian.plugins.hipchat.spi;version="${project.version}",
                            com.atlassian.plugins.hipchat,
                            com.atlassian.plugins.hipchat.ao,
                            com.atlassian.plugins.hipchat.descriptor,
                            com.atlassian.plugins.hipchat.group,
                            com.atlassian.plugins.hipchat.install,
                            com.atlassian.plugins.hipchat.link,
                            com.atlassian.plugins.hipchat.routes,
                            com.atlassian.plugins.hipchat.token,
                            com.atlassian.plugins.hipchat.user
                        </Export-Package>
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                    <!--the default versions of fastdev seems to be buggy, these versions are working-->
                    <fastdevVersion>2.4</fastdevVersion>
                    <devToolboxVersion>2.0.14</devToolboxVersion>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.4</version>
                <executions>
                    <execution>
                        <id>test-jar</id>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>
    </build>

    <properties>
        <plugin.key>${project.groupId}.${project.artifactId}</plugin.key>
        <project.root.directory>${project.basedir}/..</project.root.directory>
        <od.testing.configuration>
            use-maven,3
        </od.testing.configuration>
    </properties>
</project>
