<?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.plugins</groupId>
        <artifactId>atlassian-hipchat-integration-parent</artifactId>
        <version>7.8.17</version>
    </parent>

    <artifactId>bitbucket-hipchat-integration</artifactId>
    <packaging>pom</packaging>
    <name>Bitbucket HipChat Integration Modules</name>

    <modules>
        <module>bitbucket-hipchat-integration-func-tests</module>
        <module>bitbucket-hipchat-integration-page-objects</module>
        <module>bitbucket-hipchat-integration-plugin</module>
        <module>bitbucket-hipchat-integration-test-plugin</module>
    </modules>

    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
        <activeobjects.version>1.0.1</activeobjects.version>
        <h2.version>1.3.176</h2.version>
        <!-- Remove maven-enforcer-plugin section below when this is bumped to a final version -->
        <bitbucket.version>4.8.0-m2</bitbucket.version>
        <bitbucket.data.version>${bitbucket.version}</bitbucket.data.version>
        <guava.version>18.0</guava.version>
        <spring.libversion>4.1.7.RELEASE</spring.libversion>
    </properties>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <executions>
                        <execution>
                            <id>ban-milestones-and-release-candidates</id>
                            <phase>validate</phase>
                            <goals>
                                <goal>enforce</goal>
                            </goals>
                            <configuration>
                                <rules>
                                    <banVersionDeps>
                                        <excludes>
                                            <exclude>com.atlassian.bitbucket.server:*</exclude>
                                        </excludes>
                                    </banVersionDeps>
                                </rules>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>bitbucket-maven-plugin</artifactId>
                    <version>${bitbucket.amps.version}</version>
                    <extensions>true</extensions>
                    <configuration>
                        <systemPropertyVariables combine.children="append">
                            <!--Properties to make testing easier in Bitbucket-->
                            <atlassian.dev.mode>${atlassian.dev.mode}</atlassian.dev.mode>

                            <plugins.hipchat.api.url>${plugins.hipchat.api.url}</plugins.hipchat.api.url>

                            <!-- HipChat Test properties -->
                            <hipchat.ignoressl.validation>${hipchat.ignoressl.validation}</hipchat.ignoressl.validation>

                            <!-- Discovery is disabled by default -->
                            <discovery.test.mode>true</discovery.test.mode>
                        </systemPropertyVariables>
                        <!--<jvmArgs>-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8123</jvmArgs>-->

                        <bundledArtifacts combine.children="append">
                            <bundledArtifact>
                                <groupId>com.atlassian.plugins</groupId>
                                <artifactId>base-hipchat-integration-plugin-api</artifactId>
                                <version>${project.version}</version>
                            </bundledArtifact>
                            <bundledArtifact>
                                <groupId>com.atlassian.plugins</groupId>
                                <artifactId>base-hipchat-integration-plugin</artifactId>
                                <version>${project.version}</version>
                            </bundledArtifact>
                            <bundledArtifact>
                                <groupId>com.atlassian.bitbucket.plugins</groupId>
                                <artifactId>bitbucket-hipchat-integration-plugin</artifactId>
                                <version>${project.version}</version>
                            </bundledArtifact>
                        </bundledArtifacts>
                    </configuration>
                </plugin>
            </plugins>

        </pluginManagement>
    </build>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.atlassian.bitbucket.server</groupId>
                <artifactId>bitbucket-api</artifactId>
                <version>${bitbucket.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.server</groupId>
                <artifactId>bitbucket-rest</artifactId>
                <version>${bitbucket.version}</version>
            </dependency>
            <dependency>
                <groupId>com.atlassian.bitbucket.server</groupId>
                <artifactId>bitbucket-util</artifactId>
                <version>${bitbucket.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>
</project>
