<?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>
  <name>Atlassian Stash Remote Events</name>
  <parent>
    <groupId>com.atlassian.pom</groupId>
    <artifactId>closedsource-pom</artifactId>
    <version>3.0.84</version>
  </parent>
  <groupId>com.atlassian.stash.plugins</groupId>
  <artifactId>stash-remote-event-parent</artifactId>
  <version>0.7.0</version>
  <packaging>pom</packaging>
  <modules>
    <module>stash-remote-event-api</module>
    <module>stash-remote-event-stash-spi</module>
    <module>stash-remote-event-bitbucket-server-spi</module>
    <module>stash-remote-event-bamboo-spi</module>
    <module>stash-remote-event-integration-test</module>
  </modules>
  <scm>
    <connection>scm:git:ssh://stash.atlassian.com:7997/stash/stash-remote-events.git</connection>
    <developerConnection>scm:git:ssh://stash.atlassian.com:7997/stash/stash-remote-events.git</developerConnection>
    <tag>HEAD</tag>
  </scm>
  <properties>
    <bamboo.version>5.7.0</bamboo.version>
    <amps.version>6.1.0-30bbe49</amps.version>
    <stash.version>3.2.0</stash.version>
    <bitbucket.version>4.0.0-m19</bitbucket.version>
    <log4j.version>1.2.15</log4j.version>
    <slf4j.libversion>1.7.6</slf4j.libversion>
    <bamboo.port>6990</bamboo.port>
    <stash.port>7990</stash.port>
    <bitbucket.port>7990</bitbucket.port>
    <springVersion>2.0.7</springVersion>
    <atlassian.applinks.version>4.0.8</atlassian.applinks.version>
    <atlassian.fugue.version>1.1</atlassian.fugue.version>
    <atlassian.rest.version>2.7.3</atlassian.rest.version>
    <atlassian.rest.jackson.version>1.9.1</atlassian.rest.jackson.version>
    <atlassian.rest.jersey.version>1.8-atlassian-8</atlassian.rest.jersey.version>
    <atlassian.event.version>2.3.0</atlassian.event.version>
    <atlassian.remote.event.version>1.0.3</atlassian.remote.event.version>
    <commons.httpclient4.version>4.5</commons.httpclient4.version>
    <commons.httpcore4.version>4.4.1</commons.httpcore4.version>
    <junit.version>4.11</junit.version>
    <guavaVersion>18.0</guavaVersion>
    <mockito.version>1.9.5</mockito.version>
    <jwebunit.version>1.4.1</jwebunit.version>
    <bamboo.containerId>tomcat6x</bamboo.containerId>

    <atlassian.selenium.version>2.3-m11</atlassian.selenium.version>
    <atlassian.browsers.version>2.6-m3</atlassian.browsers.version>

    <webdriver.browser>firefox</webdriver.browser>
    <xvfb.enable>true</xvfb.enable>

    <spring.scanner.version>1.2.2</spring.scanner.version>
    <maven.test.it.skip>true</maven.test.it.skip>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>com.atlassian.stash.plugins</groupId>
        <artifactId>stash-remote-event-api</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.stash.plugins</groupId>
        <artifactId>stash-remote-event-bamboo-spi</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.stash.plugins</groupId>
        <artifactId>stash-remote-event-stash-spi</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.stash.plugins</groupId>
        <artifactId>stash-remote-event-bitbucket-server-spi</artifactId>
        <version>${project.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.plugins</groupId>
        <artifactId>atlassian-remote-event-api</artifactId>
        <version>${atlassian.remote.event.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.plugins</groupId>
        <artifactId>atlassian-remote-event-common-plugin</artifactId>
        <version>${atlassian.remote.event.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.plugins</groupId>
        <artifactId>atlassian-remote-event-consumer-plugin</artifactId>
        <version>${atlassian.remote.event.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.plugins</groupId>
        <artifactId>atlassian-remote-event-producer-plugin</artifactId>
        <version>${atlassian.remote.event.version}</version>
      </dependency>

      <dependency>
        <groupId>com.atlassian.stash</groupId>
        <artifactId>stash-api</artifactId>
        <version>${stash.version}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.bitbucket.server</groupId>
        <artifactId>bitbucket-api</artifactId>
        <version>${bitbucket.version}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-api</artifactId>
        <version>${bamboo.version}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.plugins.rest</groupId>
        <artifactId>atlassian-rest-module</artifactId>
        <version>${atlassian.rest.version}</version>
        <scope>provided</scope>
        <exclusions>
          <exclusion>
            <groupId>asm</groupId>
            <artifactId>asm</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>com.atlassian.fugue</groupId>
        <artifactId>fugue</artifactId>
        <version>${atlassian.fugue.version}</version>
        <exclusions>
          <exclusion>
            <groupId>com.google.guava</groupId>
            <artifactId>guava</artifactId>
          </exclusion>
        </exclusions>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.applinks</groupId>
        <artifactId>applinks-api</artifactId>
        <version>${atlassian.applinks.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.event</groupId>
        <artifactId>atlassian-event</artifactId>
        <version>${atlassian.event.version}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>${springVersion}</version>
        <exclusions>
          <exclusion>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>1.2.17</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>${slf4j.libversion}</version>
        <scope>provided</scope>
      </dependency>

      <dependency>
        <groupId>javax.inject</groupId>
        <artifactId>javax.inject</artifactId>
        <version>1</version>
        <scope>provided</scope>
      </dependency>

      <dependency>
        <groupId>com.atlassian.plugin</groupId>
        <artifactId>atlassian-spring-scanner-annotation</artifactId>
        <version>${spring.scanner.version}</version>
        <scope>compile</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.plugin</groupId>
        <artifactId>atlassian-spring-scanner-processor</artifactId>
        <version>${spring.scanner.version}</version>
        <scope>provided</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.plugin</groupId>
        <artifactId>atlassian-spring-scanner-runtime</artifactId>
        <version>${spring.scanner.version}</version>
        <scope>runtime</scope>
      </dependency>

      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpcore</artifactId>
        <version>${commons.httpcore4.version}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>${commons.httpclient4.version}</version>
      </dependency>
      <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>${guavaVersion}</version>
      </dependency>

      <!-- Tests -->
      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-core</artifactId>
        <version>${bamboo.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.selenium</groupId>
        <artifactId>atlassian-webdriver-core</artifactId>
        <version>${atlassian.selenium.version}</version>
        <scope>test</scope>
        <exclusions>
          <exclusion>
            <!--group id changed...-->
            <groupId>net.sourceforge.htmlunit</groupId>
            <artifactId>htmlunit</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.google.collections</groupId>
            <artifactId>google-collections</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
      <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-core</artifactId>
        <version>${mockito.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.stash</groupId>
        <artifactId>stash-page-objects</artifactId>
        <version>${stash.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.stash</groupId>
        <artifactId>stash-util</artifactId>
        <version>${stash.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-pageobjects</artifactId>
        <version>${bamboo.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>atlassian-bamboo-test-utils</artifactId>
        <version>${bamboo.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.bamboo.plugins</groupId>
        <artifactId>atlassian-bamboo-plugin-test-utils</artifactId>
        <version>${bamboo.version}</version>
      </dependency>
      <dependency>
        <groupId>com.atlassian.browsers</groupId>
        <artifactId>atlassian-browsers-auto</artifactId>
        <version>${atlassian.browsers.version}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>com.jayway.restassured</groupId>
        <artifactId>rest-assured</artifactId>
        <version>2.3.2</version>
      </dependency>

    </dependencies>
  </dependencyManagement>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.atlassian.maven.plugins</groupId>
          <artifactId>maven-amps-plugin</artifactId>
          <version>${amps.version}</version>
          <extensions>true</extensions>
          <configuration>
            <extractDependencies>false</extractDependencies>
            <systemPropertyVariables>
              <webdriver.firefox.logfile>${project.build.directory}/webdriverTmp/firefox.log</webdriver.firefox.logfile>
              <webdriver.browser>${webdriver.browser}</webdriver.browser>
              <xvfb.enable>${xvfb.enable}</xvfb.enable>
            </systemPropertyVariables>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>1.3.1</version>
        <executions>
          <execution>
            <id>ban-milestones-and-release-candidates</id>
            <phase>none</phase>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <skip>${maven.test.unit.skip}</skip>
          <excludes>
            <exclude>it/**/*</exclude>
            <exclude>**/Abstract*</exclude>
            <exclude>**/Mock*</exclude>
            <exclude>**/*$*</exclude>
          </excludes>
        </configuration>
        <executions>
          <execution>
            <id>acceptance_tests</id>
            <phase>integration-test</phase>
            <goals>
              <goal>test</goal>
            </goals>
            <configuration>
              <!--will just skip test execution but not preparing/starting container, -DskipITs will totally skip bamboo:integration-test-->
              <skip>${maven.test.it.skip}</skip>
              <excludes>
                <exclude>none</exclude>
                <exclude>**/Abstract*</exclude>
                <exclude>**/Mock*</exclude>
                <exclude>**/*$*</exclude>
              </excludes>
              <includes>
                <include>it/**/*java</include>
              </includes>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
  <repositories>
    <repository>
      <id>atlassian-3rdparty</id>
      <url>https://maven.atlassian.com/3rdparty</url>
    </repository>
  </repositories>
  <distributionManagement>
    <repository>
      <id>atlassian-public</id>
      <name>Atlassian Public Repository</name>
      <url>https://maven.atlassian.com/public</url>
    </repository>
    <snapshotRepository>
      <id>atlassian-public-snapshot</id>
      <name>Atlassian Public Snapshot Repository</name>
      <url>https://maven.atlassian.com/public-snapshot</url>
    </snapshotRepository>
  </distributionManagement>
  <dependencies />
</project>
