<?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.plugins</groupId>
        <artifactId>jira-html5-attach-images-parent</artifactId>
        <version>1.5.22</version>
    </parent>
    <artifactId>jira-html5-attach-images</artifactId>
    <organization>
        <name>Atlassian</name>
        <url>http://www.atlassian.com</url>
    </organization>
    <name>Attach Image for JIRA</name>
    <description>This is the Attach Images plugin for Atlassian Products.</description>
    <packaging>atlassian-plugin</packaging>
    <licenses>
        <license>
            <name>Atlassian End User License</name>
            <url>https://www.atlassian.com/end-user-agreement/</url>
            <comments>Atlassian 3.0 End User License Agreement</comments>
        </license>
    </licenses>
    <scm>
        <connection>scm:git:ssh://git@bitbucket.org//${git.username}/${git.repository}.git</connection>
        <developerConnection>scm:git:ssh://git@bitbucket.org/${git.username}/${git.repository}.git</developerConnection>
        <url>https://bitbucket.org/${git.username}/${git.repository}.git</url>
        <tag>jira-html5-attach-images-parent-1.5.22</tag>
    </scm>
    <dependencies>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.jira</groupId>
            <artifactId>jira-core</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <plugins>
            <!-- Helps to figure our the atlassian-plugin type of packaging -->
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-jira-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${jira.version}</productVersion>
                    <productDataVersion>${jira.version}</productDataVersion>
                    <enableFastdev>false</enableFastdev>
                    <pluginArtifacts>
                        <!-- Needed for QUnit tests -->
                        <pluginArtifact>
                            <groupId>com.atlassian.qunit</groupId>
                            <artifactId>atlassian-qunit-plugin</artifactId>
                            <version>${atlassian.qunit.version}</version>
                        </pluginArtifact>
                        <!-- Useful for Func / WebDriver tests, in particular provides backdoor resources -->
                        <pluginArtifact>
                            <groupId>com.atlassian.jira</groupId>
                            <artifactId>jira-func-test-plugin</artifactId>
                            <version>${jira.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.jira.tests</groupId>
                            <artifactId>jira-testkit-plugin</artifactId>
                            <version>${testkit.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>2.3</version>
                <executions>
                    <execution>
                        <id>copy-screenshot-applet</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>jira-html5-attach-images-applet</artifactId>
                                    <version>${project.version}</version>
                                    <destFileName>${applet.normal.jar}</destFileName>
                                    <outputDirectory>${project.build.directory}/classes/${applet.directory}</outputDirectory>
                                </artifactItem>
                                <artifactItem>
                                    <groupId>com.atlassian.plugins</groupId>
                                    <artifactId>jira-html5-attach-images-applet</artifactId>
                                    <classifier>legacy</classifier>
                                    <version>${project.version}</version>
                                    <destFileName>${applet.legacy.jar}</destFileName>
                                    <outputDirectory>${project.build.directory}/classes/${applet.directory}</outputDirectory>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-amps-dispatcher-plugin</artifactId>
                    <version>${amps.version}</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <properties>
        <applet.directory>applet</applet.directory>
        <applet.normal.jar>clipboard.jar</applet.normal.jar>
        <applet.legacy.jar>clipboard-legacy.jar</applet.legacy.jar>

        <atlassian.plugin.key>com.atlassian.plugins.jira-html5-attach-images-integration-tests</atlassian.plugin.key>
        <od.testing.configuration>
            include-artifact,com.atlassian.plugins:jira-html5-attach-images-integration-tests
        </od.testing.configuration>
    </properties>
</project>
