<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>4.0.12</version>
  </parent>

  <groupId>com.atlassian.marshalling</groupId>
  <artifactId>atlassian-marshalling-api</artifactId>
  <version>1.0.0</version>
  <packaging>jar</packaging>

  <name>Atlassian Marshalling API</name>
  <url>http://docs.atlassian.com/${project.artifactId}/${project.version}</url>

  <issueManagement>
    <system>Jira</system>
    <url>https://ecosystem.atlassian.net/projects/MARSHAL</url>
  </issueManagement>

  <scm>
    <connection>scm:git:git@bitbucket.org:atlassian/atlassian-marshalling-api.git</connection>
    <developerConnection>scm:git:git@bitbucket.org:atlassian/atlassian-marshalling-api.git</developerConnection>
    <url>https://bitbucket.org/atlassian/atlassian-marshalling-api</url>
    <tag>atlassian-marshalling-api-1.0.0</tag>
  </scm>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>8</maven.compiler.source>
    <maven.compiler.target>8</maven.compiler.target>
    <atlassian.platform.version>3.0.12</atlassian.platform.version>
    <!-- API compat commented out until 1.0 is released -->
    <!--<api.compatibility.check.version>1.0.0</api.compatibility.check.version>-->
  </properties>

  <dependencyManagement>
    <dependencies>
      <!-- Internal -->

      <!-- External dependencies, using the Platform POMs https://bitbucket.org/atlassian/platform-poms -->
      <dependency>
        <groupId>com.atlassian.platform</groupId>
        <artifactId>platform</artifactId>
        <version>${atlassian.platform.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>com.atlassian.platform</groupId>
        <artifactId>third-party</artifactId>
        <version>${atlassian.platform.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>com.atlassian.annotations</groupId>
      <artifactId>atlassian-annotations</artifactId>
    </dependency>
    <dependency>
      <groupId>com.google.code.findbugs</groupId>
      <artifactId>jsr305</artifactId>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <executions>
          <execution>
            <id>verify</id>
            <phase>verify</phase>
            <configuration>
              <configLocation>resources/checkstyle-rules.xml</configLocation>
              <encoding>UTF-8</encoding>
              <consoleOutput>true</consoleOutput>
              <failsOnError>true</failsOnError>
            </configuration>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>

    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>2.15</version>
          <dependencies>
            <dependency>
              <groupId>com.puppycrawl.tools</groupId>
              <artifactId>checkstyle</artifactId>
              <version>6.12.1</version>
            </dependency>
          </dependencies>
        </plugin>

        <!-- API compat commented out until 1.0 is released -->
        <!--<plugin>-->
        <!--<groupId>com.atlassian.maven.plugins</groupId>-->
        <!--<artifactId>api-compat-maven-plugin</artifactId>-->
        <!--<version>0.6</version>-->
        <!--<configuration>-->
        <!--<traverse>true</traverse>-->
        <!--<oldVersion>-->
        <!--<dependency>-->
        <!--<groupId>${project.groupId}</groupId>-->
        <!--<artifactId>${project.artifactId}</artifactId>-->
        <!--<version>${api.compatibility.check.version}</version>-->
        <!--</dependency>-->
        <!--</oldVersion>-->
        <!--<newVersion>-->
        <!--<dependency>-->
        <!--<groupId>${project.groupId}</groupId>-->
        <!--<artifactId>${project.artifactId}</artifactId>-->
        <!--<version>${project.version}</version>-->
        <!--</dependency>-->
        <!--</newVersion>-->
        <!--</configuration>-->
        <!--</plugin>-->
      </plugins>
    </pluginManagement>
  </build>

  <distributionManagement>
    <site>
      <id>atlassian-documentation</id>
      <url>scpexe://docs-app.internal.atlassian.com/var/www/domains/docs.atlassian.com/${project.artifactId}/${project.version}</url>
    </site>
  </distributionManagement>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
      </plugin>
    </plugins>
  </reporting>

  <ciManagement>
    <system>Bamboo</system>
    <url>https://ecosystem-bamboo.internal.atlassian.com/browse/MARSHAL</url>
  </ciManagement>

</project>
