<?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.theme</groupId>
        <artifactId>atlassian-theme</artifactId>
        <version>4.0.0</version>
    </parent>

    <artifactId>atlassian-theme-integration-tests</artifactId>
    <name>Atlassian Theme - Integration Tests</name>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.theme</groupId>
            <artifactId>atlassian-theme-plugin</artifactId>
        </dependency>

        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>tools.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>amps-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <systemPropertyVariables>
                        <atlassian.plugins.internal.rest.v1.access.enabled>true
                        </atlassian.plugins.internal.rest.v1.access.enabled>
                    </systemPropertyVariables>
                    <bundledArtifacts>
                        <bundledArtifact>
                            <groupId>com.atlassian.theme</groupId>
                            <artifactId>atlassian-theme-plugin</artifactId>
                            <version>${project.version}</version>
                        </bundledArtifact>
                    </bundledArtifacts>
                    <libArtifacts>
                        <libArtifact>
                            <groupId>com.atlassian.theme</groupId>
                            <artifactId>atlassian-theme-api</artifactId>
                            <version>${project.version}</version>
                        </libArtifact>
                        <libArtifact>
                            <groupId>com.atlassian.theme</groupId>
                            <artifactId>atlassian-theme-internal-api</artifactId>
                            <version>${project.version}</version>
                        </libArtifact>
                        <libArtifact>
                            <groupId>com.atlassian.theme</groupId>
                            <artifactId>atlassian-theme-library</artifactId>
                            <version>${project.version}</version>
                        </libArtifact>
                    </libArtifacts>
                    <testGroups>
                        <testGroup>
                            <id>rest-integration</id>
                            <productIds>
                                <productId>refapp</productId>
                            </productIds>
                            <includes>
                                <include>it/**/*RestIT.java</include>
                            </includes>
                        </testGroup>
                    </testGroups>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>integration-test</goal>
                        </goals>
                        <phase>verify</phase>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>3.0.2</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>test-jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
