<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">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>com.atlassian.bamboo</groupId>
    <artifactId>atlassian-bamboo-plugins2-parent</artifactId>
    <version>5.15.0-m146</version>
  </parent>

  <groupId>com.atlassian.bamboo.plugins</groupId>
  <artifactId>bamboo-plugin-pocketknife-querydsl</artifactId>
  <name>Atlassian Bamboo - Plugins - Pocketknife-QueryDSL</name>
  <description>Provides the Pocketknife-QueryDSL libraries and its dependencies</description>
  <packaging>atlassian-plugin</packaging>

  <properties>
    <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
  </properties>

  <build>
    <plugins>

      <plugin>
        <groupId>com.atlassian.plugin</groupId>
        <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
        <configuration>
          <includeExclude>
            -com.atlassian.pocketknife.internal.querydsl.DatabaseAccessorImpl.*,
            -com.atlassian.pocketknife.internal.querydsl.schema.DefaultSchemaProvider.*</includeExclude>
          <scannedDependencies>
            <dependency>
              <groupId>com.atlassian.pocketknife</groupId>
              <artifactId>atlassian-pocketknife-querydsl</artifactId>
            </dependency>
          </scannedDependencies>
        </configuration>
      </plugin>

      <plugin>
        <groupId>com.atlassian.maven.plugins</groupId>
        <artifactId>maven-bamboo-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
            <Export-Package>
              com.atlassian.pocketknife.api.*,
              com.querydsl.core.*,
              com.querydsl.sql.*
            </Export-Package>
            <Import-Package>
              <!-- Deps from querydsl-->
              !net.sf.cglib.proxy,
              !org.jvnet.hudson.annotation_indexer,
              <!-- Deps from oracle driver-->
              !com.sun.security.auth.module.*,
              !sun.security.*,
              !oracle.*,
              !org.objectweb.*,
              *
            </Import-Package>
            <!-- Ensure plugin is spring powered - see https://extranet.atlassian.com/x/xBS9hQ -->
            <Spring-Context>*</Spring-Context>
          </instructions>
        </configuration>
      </plugin>

    </plugins>

  </build>

  <dependencies>
    <!-- Transformerless plugins dependencies -->
    <dependency>
      <groupId>com.atlassian.plugin</groupId>
      <artifactId>atlassian-spring-scanner-annotation</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.atlassian.pocketknife</groupId>
      <artifactId>atlassian-pocketknife-querydsl</artifactId>
      <version>3.0.6</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <!-- Bamboo provides javax.inject -->
          <groupId>org.apache.servicemix.bundles</groupId>
          <artifactId>org.apache.servicemix.bundles.javax-inject</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

    <dependency>
      <groupId>com.atlassian.sal</groupId>
      <artifactId>sal-api</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <scope>provided</scope>
    </dependency>


  </dependencies>

</project>
