<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.upm</groupId>
        <artifactId>licensing-parent</artifactId>
        <version>3.0-m1</version>
    </parent>
    <name>Universal Plugin Manager - Role-Based Licensing Implementation Plugin</name>
    <artifactId>role-based-licensing-plugin</artifactId>
    <packaging>atlassian-plugin</packaging>
    <description>Provides an SPI and implementations for role-based licensed plugins.</description>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-amps-plugin</artifactId>
                <configuration>
                    <instructions>
                        <Import-Package>
                            !com.atlassian.cache.compat*;version="0.0",
                            com.atlassian.cache*;version="${atlassian.cache.version}",
                            com.atlassian.crowd*;version="0.0",
                            com.atlassian.event*;version="0.0",
                            com.atlassian.fugue*;version="0.0",
                            com.atlassian.jira*;version="${jira.rbp.target.version}";resolution:=optional,
                            com.atlassian.sal.api*;version="${sal.api.version}";resolution:=optional,
                            com.atlassian.plugin*;version="2.9.0",
                            com.atlassian.util.concurrent*;version="${atlassian.concurrent.version}",
                            com.atlassian.user*;version="0.0";resolution:=optional,
                            com.google.common*;version="1.0",
                            javax.servlet*;version="0.0", <!-- version 0.0 is exported by JIRA system bundle -->
                            org.apache.commons.lang*;version="2.4",
                            org.dom4j*;version="1.4",
                            org.osgi.framework*;version="0.0",
                            org.osgi.util.tracker*;version="0.0",
                            org.slf4j*;version="1.5",
                            org.springframework.beans*;version="0.0"
                        </Import-Package>
                        <Export-Package>
                            com.atlassian.upm.license.role.spi*;version="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}"
                        </Export-Package>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
            </plugin>
            <!-- Used for rainicorn build stamping: -->
            <plugin>
                <groupId>com.github.koraktor</groupId>
                <artifactId>mavanagaiata</artifactId>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>role-based-licensing-spi</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>upm-common</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.usercompatibility</groupId>
            <artifactId>usercompatibility-sal</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <!-- use a version of JIRA containing the global permissions changes -->
            <version>${jira.rbp.target.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <version>${jira.rbp.target.version}</version>
            <scope>provided</scope>
        </dependency>
       <dependency>
            <groupId>com.atlassian.crowd</groupId>
            <artifactId>embedded-crowd-api</artifactId>
            <version>${crowd.rbp.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.cache</groupId>
            <artifactId>atlassian-cache-api</artifactId>
            <version>${atlassian.cache.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.pocketknife</groupId>
            <artifactId>atlassian-pocketknife-dynamic-modules</artifactId>
            <version>${pocketknife.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-all</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
        </dependency>
    </dependencies>

    <properties>
        <mavanagaiata.baseDir>${project.parent.parent.basedir}</mavanagaiata.baseDir>
        <jira.rbp.target.version>${jira.target.version}</jira.rbp.target.version>
        <atlassian.cache.version>2.0.10</atlassian.cache.version>
        <pocketknife.version>0.22</pocketknife.version>
    </properties>
</project>

