<?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>
        <artifactId>java-tools</artifactId>
        <groupId>com.adaptavist.java.tools</groupId>
        <version>0.0.2</version>
    </parent>

    <artifactId>java-tools-impl</artifactId>
    <name>Adaptavist Java Tools Plugin</name>
    <description>
        This plugin contains type definitions for an Atlassian Plugin which provides a Java compiler
    </description>

    <packaging>atlassian-plugin</packaging>

    <dependencies>
        <dependency>
            <groupId>com.adaptavist.java.tools</groupId>
            <artifactId>java-tools-api</artifactId>
            <version>${project.version}</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.plugin</groupId>
                <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
                <version>${atlassian.spring.scanner.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>atlassian-spring-scanner</goal>
                        </goals>
                        <!-- process-classes seems to be skipped if you are using scala
                             so perhaps use prepare-package -->
                        <phase>process-classes</phase>
                    </execution>
                </executions>
                <configuration>
                    <!-- Enable this to get build-time logging of annotations atlassian-spring-scanner-maven-plugin has noticed -->
                    <verbose>false</verbose>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-amps-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>

                <configuration>
                    <instructions>
                        <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                        <Spring-Context>*</Spring-Context>
                        <Export-Package>
                            com.adaptavist.java.tools.*;version="${project.version}"
                        </Export-Package>
                    </instructions>

                    <extractDependencies>false</extractDependencies>
                    <compressResources>false</compressResources>

                    <enableFastdev>false</enableFastdev>
                    <useFastdevCli>false</useFastdevCli>
                    <skipAllPrompts>true</skipAllPrompts>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>