<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.11.0-m348</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>
        <executions>
          <execution>
            <goals>
              <goal>atlassian-spring-scanner</goal>
            </goals>
            <phase>process-classes</phase>
          </execution>
        </executions>
        <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>
          <productVersion>${atlassian.product.version}</productVersion>
          <productDataVersion>${atlassian.product.data.version}</productDataVersion>
          <instructions>
            <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
            <Bundle-SymbolicName>${atlassian.plugin.key}</Bundle-SymbolicName>
            <Export-Package>
              com.atlassian.pocketknife.api.*,
              com.querydsl.core.*,
              com.querydsl.sql.*
            </Export-Package>
            <Import-Package>
              <!-- Spring Scanner Support -->
              org.springframework.osgi.*;resolution:="optional",
              org.eclipse.gemini.blueprint.*;resolution:="optional",
              <!-- Deps from querydsl-->
              !net.sf.cglib.proxy,
              !org.jvnet.hudson.annotation_indexer,
              *
            </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>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.atlassian.plugin</groupId>
      <artifactId>atlassian-spring-scanner-runtime</artifactId>
      <scope>runtime</scope>
    </dependency>

    <dependency>
      <groupId>com.atlassian.pocketknife</groupId>
      <artifactId>atlassian-pocketknife-querydsl</artifactId>
      <version>3.0.6</version>
      <scope>compile</scope>
    </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>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <scope>provided</scope>
    </dependency>


  </dependencies>

</project>
