<?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">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.atlassian.lesscss</groupId>
        <artifactId>lesscss-parent</artifactId>
        <version>2.2.0-bamboo-1</version>
    </parent>

    <groupId>com.atlassian.plugins</groupId>
    <artifactId>less-transformer-plugin</artifactId>

    <name>Atlassian LESS Transformer Plugin</name>
    <description>This plugin provides a web-resource-transformer for *.less CSS files under the key
        "less-transformer".
    </description>
    <packaging>atlassian-plugin</packaging>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.lesscss</groupId>
            <artifactId>lesscss-core</artifactId>
            <exclusions>
                <!-- Already provided by the plugin system -->
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.plugins</groupId>
            <artifactId>atlassian-plugins-webresource</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-amps-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <products>
                        <product>
                            <id>refapp</id>
                            <version>${refapp.version}</version>
                        </product>
                    </products>
                    <extractDependencies>false</extractDependencies>
                    <instructions>
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>
                        <Private-Package>
                            org.mozilla.javascript*,
                            com.atlassian.plugins.less
                            com.atlassian.lesscss
                        </Private-Package>
                        <Import-Package>
                            com.atlassian.lesscss.spi,
                            com.atlassian.event.api,
                            com.atlassian.plugin,
                            com.atlassian.plugin.descriptors,
                            com.atlassian.plugin.elements,
                            com.atlassian.plugin.event*,
                            com.atlassian.plugin.module,
                            com.atlassian.plugin.osgi.bridge.external,
                            com.atlassian.plugin.osgi.external,
                            com.atlassian.plugin.predicate,
                            com.atlassian.plugin.servlet,
                            com.atlassian.plugin.tracker,
                            com.atlassian.plugin.webresource*;version="${webresource.osgi.version}",
                            com.google.common.*;version="${guava.osgi.version}",
                            javax.servlet,
                            javax.imageio,
                            org.dom4j,
                            org.slf4j
                        </Import-Package>
                        <Export-Package>
                            com.atlassian.lesscss.spi
                        </Export-Package>
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemProperties>
                        <java.awt.headless>true</java.awt.headless>
                    </systemProperties>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
