<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.soy</groupId>
        <artifactId>atlassian-soy-integration-tests-parent</artifactId>
        <version>6.0.0-m03-cedfd94</version>
    </parent>

    <artifactId>atlassian-soy-plugin-integration-tests</artifactId>

    <name>Atlassian Soy - Integration Tests - Plugin</name>

    <packaging>atlassian-plugin</packaging>

    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>amps-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.diagnostics</groupId>
                            <artifactId>noisy-neighbour-plugin</artifactId>
                            <version>${noisyneighbour.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                    <containerId>tomcat85x</containerId>
                    <systemPropertyVariables>
                        <refapp.profiling.enabled>true</refapp.profiling.enabled>
                    </systemPropertyVariables>
                    <products>
                        <product>
                            <id>jira</id>
                            <version>${jira.it.version}</version>
                            <systemPropertyVariables>
                                <com.atlassian.jira.startup.LauncherContextListener.SYNCHRONOUS>true
                                </com.atlassian.jira.startup.LauncherContextListener.SYNCHRONOUS>
                                <refapp.profiling.enabled>true</refapp.profiling.enabled>
                            </systemPropertyVariables>
                            <bundledArtifacts>
                                <bundledArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-plugin</artifactId>
                                    <version>${project.version}</version>
                                </bundledArtifact>
                            </bundledArtifacts>
                            <libArtifacts>
                                <libArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-renderer-api</artifactId>
                                    <version>${project.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-renderer-plugin-api</artifactId>
                                    <version>${project.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.clover</groupId>
                                    <artifactId>clover</artifactId>
                                    <version>${clover.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.profiling</groupId>
                                    <artifactId>atlassian-profiling</artifactId>
                                    <version>${atlassian.profiling.version}</version>
                                </libArtifact>
                            </libArtifacts>
                        </product>
                        <product>
                            <id>refapp</id>
                            <version>${refapp.it.version}</version>
                            <bundledArtifacts>
                                <bundledArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-plugin</artifactId>
                                    <version>${project.version}</version>
                                </bundledArtifact>
                            </bundledArtifacts>
                            <libArtifacts>
                                <libArtifact>
                                    <groupId>com.atlassian.clover</groupId>
                                    <artifactId>clover</artifactId>
                                    <version>${clover.version}</version>
                                </libArtifact>
                            </libArtifacts>
                            <systemPropertyVariables>
                                <refapp.profiling.enabled>true</refapp.profiling.enabled>
                            </systemPropertyVariables>
                        </product>
                        <product>
                            <id>bitbucket</id>
                            <version>${bitbucket.it.version}</version>
                            <bundledArtifacts>
                                <bundledArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-plugin</artifactId>
                                    <version>${project.version}</version>
                                </bundledArtifact>
                            </bundledArtifacts>
                            <libArtifacts>
                                <libArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-renderer-api</artifactId>
                                    <version>${project.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-renderer-plugin-api</artifactId>
                                    <version>${project.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.clover</groupId>
                                    <artifactId>clover</artifactId>
                                    <version>${clover.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.profiling</groupId>
                                    <artifactId>atlassian-profiling</artifactId>
                                    <version>${atlassian.profiling.version}</version>
                                </libArtifact>
                            </libArtifacts>
                        </product>
                        <product>
                            <id>confluence</id>
                            <containerId>${confluence.container}</containerId>
                            <version>${confluence.version}</version>
                            <bundledArtifacts>
                                <bundledArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-plugin</artifactId>
                                    <version>${project.version}</version>
                                </bundledArtifact>
                            </bundledArtifacts>
                            <libArtifacts>
                                <libArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-renderer-api</artifactId>
                                    <version>${project.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.soy</groupId>
                                    <artifactId>soy-template-renderer-plugin-api</artifactId>
                                    <version>${project.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.clover</groupId>
                                    <artifactId>clover</artifactId>
                                    <version>${clover.version}</version>
                                </libArtifact>
                                <libArtifact>
                                    <groupId>com.atlassian.profiling</groupId>
                                    <artifactId>atlassian-profiling</artifactId>
                                    <version>${atlassian.profiling.version}</version>
                                </libArtifact>
                            </libArtifacts>
                        </product>
                    </products>
                    <testGroups>
                        <testGroup>
                            <id>meta-${it.productId}</id>
                            <productIds>
                                <productId>${it.productId}</productId>
                            </productIds>
                            <systemProperties>
                                <refapp.profiling.enabled>true</refapp.profiling.enabled>
                            </systemProperties>
                            <excludes>
                                <exclude>**/SoyTemplateRendererMetricTest.java</exclude>
                            </excludes>
                        </testGroup>
                        <testGroup>
                            <id>metric-test</id>
                            <productIds>
                                <productId>refapp</productId>
                            </productIds>
                            <systemProperties>
                                <refapp.profiling.enabled>true</refapp.profiling.enabled>
                            </systemProperties>
                            <includes>
                                <include>**/SoyTemplateRendererMetricTest.java</include>
                            </includes>
                        </testGroup>
                    </testGroups>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.atlassian.soy</groupId>
            <artifactId>atlassian-soy-integration-tests-common</artifactId>
        </dependency>
        <dependency>
            <groupId>com.atlassian.soy</groupId>
            <artifactId>soy-template-renderer-plugin-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.soy</groupId>
            <artifactId>soy-template-plugin</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.soy</groupId>
            <artifactId>soy-template-renderer-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!--        Test Dependencies-->
        <dependency>
            <groupId>org.dom4j</groupId>
            <artifactId>dom4j</artifactId>
            <version>${dom4j.versoin}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <version>${restassured.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>2.13.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>javax.ws.rs</groupId>
            <artifactId>jsr311-api</artifactId>
            <version>${javax.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <properties>
        <it.productId>refapp</it.productId>
        <it.productVersion>${refapp.it.version}</it.productVersion>
        <restassured.version>4.4.0</restassured.version>
        <javax.version>1.1.1</javax.version>
        <noisyneighbour.version>1.1.17</noisyneighbour.version>
    </properties>

    <profiles>
        <profile>
            <id>with-clover</id>
            <properties>
                <!-- The default boot delegation list is not good enough for Clover -->
                <atlassian.org.osgi.framework.bootdelegation>
                    weblogic,weblogic.*,
                    META-INF.services,
                    com.yourkit,com.yourkit.*,
                    com.chronon,com.chronon.*,
                    com.jprofiler,com.jprofiler.*,
                    org.apache.xerces,org.apache.xerces.*,
                    org.apache.xalan,org.apache.xalan.*,
                    org.apache.xml.serializer,
                    sun.*,
                    com.sun.xml.bind.v2,
                    com.icl.saxon,
                    com_atlassian_clover,
                    com.atlassian.clover,com.atlassian.clover.*
                </atlassian.org.osgi.framework.bootdelegation>
            </properties>
        </profile>
        <profile>
            <id>confluence</id>
            <properties>
                <it.productId>confluence</it.productId>
                <it.productVersion>${confluence.version}</it.productVersion>
            </properties>
        </profile>
        <profile>
            <id>jira</id>
            <properties>
                <it.productId>jira</it.productId>
                <it.productVersion>${jira.it.version}</it.productVersion>
            </properties>
        </profile>
        <profile>
            <id>bitbucket</id>
            <properties>
                <it.productId>bitbucket</it.productId>
                <it.productVersion>${bitbucket.it.version}</it.productVersion>
            </properties>
        </profile>
        <profile>
            <id>refapp</id>
            <properties>
                <it.productId>refapp</it.productId>
                <it.productVersion>${refapp.it.version}</it.productVersion>
            </properties>
        </profile>
    </profiles>

</project>

