<?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.pom</groupId>
        <artifactId>public-pom</artifactId>
        <version>3.0.91</version>
    </parent>

    <name>Confluence Stateless Test Runner</name>
    <groupId>com.atlassian.confluence</groupId>
    <artifactId>confluence-stateless-test-runner</artifactId>
    <version>3.0.13</version>
    <packaging>jar</packaging>

    <dependencies>
        <!-- In a minimal dependency project (i.e a project that *only* imports confluence-stateless-test-runner,
             Xerces API is assumed to be present, but not explicitly included anywhere. -->
        <dependency>
            <groupId>xml-apis</groupId>
            <artifactId>xml-apis</artifactId>
            <version>1.4.01</version>
        </dependency>
        <!-- Selenium requires commons-logging. We redirect that to SLF4j. -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jcl-over-slf4j</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <!-- Other legacy components require log4j. We redirect those to SLF4j. -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>log4j-over-slf4j</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <!-- And finally, we bring slf4j-simple in, to ensure test-consumers get reasonable logs output for free.
             If they want more control, they can exclude this and bring in logback / log4j2 / etc. -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>${slf4j.version}</version>
        </dependency>
        <!-- Most consumers of this library end up needing this -->
        <dependency>
            <groupId>com.atlassian</groupId>
            <artifactId>atlassian-test-categories</artifactId>
            <version>0.5</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.annotations</groupId>
            <artifactId>atlassian-annotations</artifactId>
            <version>${atlassian-annotations.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-rest-client</artifactId>
            <version>${confluence.version}</version>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-webdriver-pageobjects</artifactId>
            <version>${confluence-webdriver-pageobjects.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence-test-utils</artifactId>
            <version>${confluence-test-utils.version}</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit-dep</artifactId>
            <version>${junit-dep.version}</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.aether</groupId>
            <artifactId>aether-connector-basic</artifactId>
            <version>1.0.0.v20140518</version>
        </dependency>
        <dependency>
            <groupId>org.eclipse.aether</groupId>
            <artifactId>aether-transport-http</artifactId>
            <version>1.0.0.v20140518</version>
            <exclusions>
                <exclusion>
                    <groupId>org.apache.httpcomponents</groupId>
                    <artifactId>httpclient</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-settings-builder</artifactId>
            <version>3.2.5</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-aether-provider</artifactId>
            <version>3.2.5</version>
        </dependency>
        <!-- Make sure we're bringing in 4.3 of httpclient -->
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.3.6</version>
        </dependency>
        <dependency>
            <groupId>org.jgrapht</groupId>
            <artifactId>jgrapht-core</artifactId>
            <version>0.9.1</version>
        </dependency>

        <!-- TEST DEPENDENCIES -->
        <dependency>
            <groupId>commons-lang</groupId>
            <artifactId>commons-lang</artifactId>
            <version>2.5</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <!--<executions>-->
                        <!--&lt;!&ndash;-->
                            <!--https://github.com/jeluard/semantic-versioning-->
                            <!--The intent of this enforcer rule is to ensure a backwards incompatible change hasn't-->
                            <!--been introduced for a release in the current major version.-->
                         <!--&ndash;&gt;-->
                        <!--<execution>-->
                            <!--<id>check</id>-->
                            <!--<phase>verify</phase>-->
                            <!--<goals>-->
                                <!--<goal>enforce</goal>-->
                            <!--</goals>-->
                            <!--<configuration>-->
                                <!--<rules>-->
                                    <!--<requireBackwardCompatibility implementation="org.semver.enforcer.RequireBackwardCompatibility">-->
                                        <!--<compatibilityType>BACKWARD_COMPATIBLE_USER</compatibilityType>-->
                                        <!--<dumpDetails>true</dumpDetails>-->
                                    <!--</requireBackwardCompatibility>-->
                                <!--</rules>-->
                            <!--</configuration>-->
                        <!--</execution>-->
                    <!--</executions>-->
                    <!--<dependencies>-->
                        <!--<dependency>-->
                            <!--<groupId>org.semver</groupId>-->
                            <!--<artifactId>enforcer-rule</artifactId>-->
                            <!--<version>${semver-enforcer.version}</version>-->
                        <!--</dependency>-->
                    <!--</dependencies>-->
                </plugin>
            </plugins>
        </pluginManagement>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.16</version>
                <configuration>
                    <!--let amps take care of running the tests-->
                    <skipTests>true</skipTests>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-confluence-plugin</artifactId>
                <version>6.0.2</version>
                <configuration>
                    <enableDevToolbox>false</enableDevToolbox>
                    <enableFastdev>false</enableFastdev>
                    <useFastdevCli>false</useFastdevCli>
                    <containerId>tomcat7x</containerId>
                    <allowGoogleTracking>false</allowGoogleTracking>
                    <productVersion>${confluence.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>
                    <systemPropertyVariables>
                        <xvfb.enable>true</xvfb.enable>
                        <xvfb.display>${xvfb.display}</xvfb.display>
                    </systemPropertyVariables>
                    <pluginArtifacts>
                        <!--artifacts needed for testing-->
                        <pluginArtifact>
                            <groupId>com.atlassian.confluence.plugins</groupId>
                            <artifactId>confluence-functestrpc-plugin</artifactId>
                            <version>${confluence.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.confluence.plugins</groupId>
                            <artifactId>confluence-functest-rest-plugin</artifactId>
                            <version>${confluence.version}</version>
                        </pluginArtifact>
                        <pluginArtifact>
                            <groupId>com.atlassian.confluence.plugins</groupId>
                            <artifactId>confluence-scriptsfinished-plugin</artifactId>
                            <version>${confluence.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                </configuration>
                <executions>
                    <execution>
                        <id>test-stateless</id>
                        <phase>integration-test</phase>
                        <goals>
                            <goal>integration-test</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <properties>
        <confluence.version>5.9.1</confluence.version>
        <confluence.data.version>5.9.1</confluence.data.version>

        <!-- Please don't use version ranges here: if we do, any consumers of confluence-stateless-test-runner
             who want a reproducible dependency tree will have to declare and version all of its transitive dependencies.
             See CONFDEV-33989. -->
        <confluence-webdriver-pageobjects.version>4.0.5</confluence-webdriver-pageobjects.version>
        <confluence-test-utils.version>3.1.1</confluence-test-utils.version>

        <atlassian-annotations.version>0.11</atlassian-annotations.version>
        <log4j.version>1.2.17</log4j.version>
        <slf4j.version>1.7.10</slf4j.version>
        <junit-dep.version>4.10</junit-dep.version>
        <semver-enforcer.version>0.9.33</semver-enforcer.version>

        <jdkLevel>1.8</jdkLevel>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
        <!-- Enforcer rule for release profile -->
        <requireJavaVersion>1.8.0</requireJavaVersion>
        <!--for making webdriver work-->
        <xvfb.display>:0</xvfb.display>
    </properties>


    <scm>
        <connection>scm:git:ssh://git@stash.atlassian.com:7997/confserver/confluence-stateless-test-runner.git</connection>
        <developerConnection>scm:git:ssh://git@stash.atlassian.com:7997/confserver/confluence-stateless-test-runner.git</developerConnection>
        <tag>confluence-stateless-test-runner-3.0.13</tag>
    </scm>
</project>
