<?xml version="1.0"?>
<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.tenancy</groupId>
        <artifactId>atlassian-tenancy</artifactId>
        <version>3.0.1</version>
    </parent>

    <artifactId>atlassian-tenancy-compatibility-plugin</artifactId>
    <packaging>bundle</packaging>

    <name>Atlassian Tenancy Compatibility Plugin</name>
    <description>Provides a shim of the Tenancy API so tenant-aware plugins can be deployed in non-tenant-aware
        containers.
    </description>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.tenancy</groupId>
            <artifactId>atlassian-tenancy-api</artifactId>
        </dependency>

        <dependency>
            <groupId>org.osgi</groupId>
            <artifactId>org.osgi.core</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Private-Package>com.atlassian.tenancy.compatibility</Private-Package>
                        <Import-Package>
                            com.atlassian.tenancy.api,
                            com.atlassian.tenancy.api.event,
                            io.atlassian.fugue,
                            javax.annotation;version="0.0.0",
                            org.osgi.framework,
                            org.slf4j,
                            *
                        </Import-Package>
                        <_exportcontents>
                            com.atlassian.tenancy.api,
                            com.atlassian.tenancy.api.event,
                        </_exportcontents>
                        <Embed-Dependency>
                            *;scope=compile
                        </Embed-Dependency>
                        <Bundle-Activator>com.atlassian.tenancy.compatibility.PluginActivator</Bundle-Activator>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
