<?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/maven-v4_0_0.xsd">
  <parent>
    <artifactId>jira-plugins</artifactId>
    <groupId>com.atlassian.jira</groupId>
    <version>10.3.5</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>jira-sal-plugin</artifactId>
  <packaging>bundle</packaging>
  <name>Atlassian Jira - Plugins - SAL Plugin</name>
  <description>Jira implementation of the Shared Application Access Layer (SAL)</description>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
          <artifactSet>
            <includes>
              <include>com.atlassian.sal:*</include>
            </includes>
          </artifactSet>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>com.atlassian.sal.jira</Bundle-SymbolicName>
            <Private-Package>com.atlassian.sal.jira*</Private-Package>
            <Export-Package>com.atlassian.sal.jira.scheduling*
                            com.atlassian.sal.core*</Export-Package>
            <Import-Package>javax.servlet,
                            javax.servlet.http,
                            sun.misc*;resolution:=optional,
                            com.atlassian.sal.api;version=!,
                            com.atlassian.sal.api.net;version=!,
                            com.atlassian.sal.spi;version=!,
                            com.atlassian.sal.core*;version=!,
                            *</Import-Package>
            <Embed-Dependency>*;scope=compile|runtime;inline=false</Embed-Dependency>
            <Embed-Transitive>false</Embed-Transitive>
            <Embed-Directory>META-INF/lib</Embed-Directory>
            <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
            <Spring-Context>*</Spring-Context>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

