<?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.servicedesk</groupId>
        <artifactId>servicedesk-components</artifactId>
        <version>4.20.1-REL-0026</version>
    </parent>

    <groupId>com.atlassian.plugins</groupId>
    <artifactId>atlassian-chaperone</artifactId>
    <packaging>atlassian-plugin</packaging>

    <name>Atlassian Chaperone</name>
    <description>Provides feature discovery on a per-user basis</description>

    <scm>
        <connection>scm:ssh://git@stash.atlassian.com:7997/sdserver/chaperone.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/sdserver/chaperone.git</developerConnection>
        <url>https://stash.atlassian.com/projects/SDSERVER/repos/chaperone</url>
        <tag>HEAD</tag>
    </scm>

    <properties>
        <platform.version>5.0.0-m1</platform.version>
        <refapp.version>5.0.0-7dbf73b</refapp.version>
        <amps.version>8.1.1</amps.version>
        <jsr311.version>1.1.1</jsr311.version>
        <od.testing.configuration>set-categories,on-trigger=".*",categories="" use-maven,3</od.testing.configuration>
        <!-- this is specified in base-pom and is used to specify the Java Version for this plugin -->
        <jdkLevel>1.8</jdkLevel>
        <!-- maven-compiler-plugin config -->
        <maven.compiler.source>${jdkLevel}</maven.compiler.source>
        <maven.compiler.target>${jdkLevel}</maven.compiler.target>
    </properties>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.platform</groupId>
                <artifactId>platform</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>com.atlassian.platform</groupId>
                <artifactId>third-party</artifactId>
                <version>${platform.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>javax.ws.rs</groupId>
                <artifactId>jsr311-api</artifactId>
                <version>${jsr311.version}</version>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>1.8.15</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
    <dependencies>
        <!-- WIRED TEST RUNNER DEPENDENCIES -->
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>refapp-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <skipBanningDependencies>true</skipBanningDependencies>
                    <compressResources>false</compressResources>
                    <productVersion>${refapp.version}</productVersion>
                    <instructions>
                        <Atlassian-Plugin-Key>${project.groupId}.${project.artifactId}</Atlassian-Plugin-Key>
                        <Import-Package>javax.ws.rs.core;version="[1.0,2)", javax.ws.rs;version="[1.0,2)",
                            com.atlassian.sal.api.*
                        </Import-Package>
                        <Export-Package>com.atlassian.chaperone.obr</Export-Package>
                        <Spring-Context>*</Spring-Context>
                    </instructions>
                    <enableQuickReload>true</enableQuickReload>
                    <applications>
                        <application>
                            <applicationKey>jira-servicedesk</applicationKey>
                            <version>3.10.1</version>
                        </application>
                    </applications>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
