<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.atlassian.pom</groupId>
        <artifactId>public-pom</artifactId>
        <version>5.0.20</version>
    </parent>
    <groupId>com.atlassian.platform</groupId>
    <artifactId>spring-velocity-support</artifactId>
    <version>0.0.7-CONFSRVDEV-10834-m01</version>
    <packaging>bundle</packaging>

    <properties>
        <velocity.version>1.7</velocity.version>
        <velocity.tools.version>1.4</velocity.tools.version>
        <commons.beanutils.version>1.9.3</commons.beanutils.version>
        <commons.digester.version>1.8.1</commons.digester.version>
        <platform.version>5.0.0-316a75e</platform.version>
    </properties>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>license-maven-plugin</artifactId>
                    <version>0.19</version>
                    <configuration>
                        <licensesDirectory>${user.dir}/third-party-licensing/licenses</licensesDirectory>
                        <bomFile>${user.dir}/third-party-licensing/bom.csv</bomFile>
                        <nonMavenDependenciesFile>
                            ${user.dir}/third-party-licensing/missing-non-maven-dependencies.properties
                        </nonMavenDependenciesFile>
                        <ignoredMavenScopes>test,provided</ignoredMavenScopes>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.5.1</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                        <Export-Package>
                            org.springframework.web.servlet.view.velocity;version=4.10.0
                        </Export-Package>
                        <Import-Package>
                            org.springframework.*,
                            javax.servlet.* ,
                            org.apache.velocity.tools.*;version="[1.3, ${velocity.tools.version}]",
                            org.apache.velocity.*;version="[${velocity.version}, 2)",
                            org.apache.commons.logging;version="1.1",
                            org.apache.commons.collections.*,
                            org.apache.commons.lang.*,
                            org.slf4j.*
                        </Import-Package>
                        <Embed-Directory>/templates</Embed-Directory>
                        <Bundle-ClassPath>.</Bundle-ClassPath>
                        <Include-Resource>LICENSE.txt,NOTICE.txt</Include-Resource>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.platform</groupId>
                <artifactId>third-party</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>org.apache.velocity</groupId>
            <artifactId>velocity</artifactId>
            <version>${velocity.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>velocity-tools</groupId>
            <artifactId>velocity-tools</artifactId>
            <version>${velocity.tools.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>commons-beanutils</groupId>
            <artifactId>commons-beanutils</artifactId>
            <version>${commons.beanutils.version}</version>
        </dependency>
        <dependency>
            <groupId>commons-digester</groupId>
            <artifactId>commons-digester</artifactId>
            <version>${commons.digester.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-beans</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <scm>
        <connection>scm:git:git@bitbucket.org:atlassian/spring-velocity-support.git</connection>
        <developerConnection>scm:git:git@bitbucket.org:atlassian/spring-velocity-support.git</developerConnection>
        <url>https://bitbucket.org/atlassian/spring-velocity-support/</url>
        <tag>spring-velocity-support-0.0.7-CONFSRVDEV-10834-m01</tag>
    </scm>

    <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>
        </license>
    </licenses>

    <distributionManagement>
        <repository>
            <id>atlassian-3rdparty</id>
            <url>https://packages.atlassian.com/maven/3rdparty</url>
        </repository>
        <snapshotRepository>
            <id>atlassian-3rdparty-snapshot</id>
            <url>https://packages.atlassian.com/maven/3rdparty-snapshot</url>
        </snapshotRepository>
    </distributionManagement>
</project>