<?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>
        <groupId>com.atlassian.pom</groupId>
        <artifactId>public-pom</artifactId>
        <version>3.0.6</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.atlassian.scala.plugins</groupId>
    <artifactId>jackson-module-scala-2.10-provider-plugin</artifactId>
    <version>0.5</version>

    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com/</url>
    </organization>

    <developers>
        <developer>
            <name>Slawomir Ginter</name>
            <email>sginter@atlassian.com</email>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git@bitbucket.org:atlassian/jackson-module-scala-provider.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:atlassian/jackson-module-scala-provider.git</developerConnection>
        <url>https://bitbucket.org/atlassian/jackson-module-scala-provider</url>
      <tag>jackson-module-scala-2.10-provider-plugin-0.5</tag>
  </scm>

    <name>jackson-module-scala-2.10-provider</name>
    <description>This plugin provides the jackson-module-scala port for Jackson 1.9 and Scala 2.10</description>
    <packaging>bundle</packaging>
    <properties>
        <jackson-module-scala-2.10.version>1.9.3.3</jackson-module-scala-2.10.version>
        <scala.version>2.10.3</scala.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.fasterxml</groupId>
            <artifactId>jackson-module-scala-2.10</artifactId>
            <version>${jackson-module-scala-2.10.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-reflect</artifactId>
            <version>${scala.version}</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
    <build>
        <finalName>${project.artifactId}-${jackson-module-scala-2.10.version}-${project.version}</finalName>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.4.0</version>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Embed-Dependency>*;scope=compile</Embed-Dependency>
                    <!-- The follow entry avoids runtime transformation of the plugin in a plugins3 enabled application -->
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>

                        <Export-Package>
                            com.fasterxml.jackson.module.scala2_10
                        </Export-Package>
                        <Import-Package>
                            <!-- 2.10.3 -> "[2.10.3, 2.11)". -->
                            scala.*;version="${range;[===,=+);${scala.version}}",
                            *
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.scala-tools</groupId>
                <artifactId>maven-scala-plugin</artifactId>
                <version>2.15.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>compile</goal>
                            <goal>testCompile</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <sourceDir>src/main/scala</sourceDir>
                    <jvmArgs>
                        <jvmArg>-Xms64m</jvmArg>
                        <jvmArg>-Xmx1024m</jvmArg>
                    </jvmArgs>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
            <comments>This license applies both to the plugin and contained jackson-module-scala</comments>
        </license>
    </licenses>

</project>
