<?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>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>
  <groupId>com.google.openrtb</groupId>
  <artifactId>openrtb-parent</artifactId>
  <packaging>pom</packaging>
  <version>2.0.2</version>
  <name>Google OpenRTB Libraries</name>
  <description>
    OpenRTB model for Java and other languages via protobuf;
    Helper OpenRTB libraries for Java including JSON serialization
  </description>
  <url>https://github.com/google/openrtb</url>
  <organization>
    <name>Google, Inc.</name>
    <url>http://www.google.com</url>
  </organization>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <issueManagement>
    <system>Github</system>
    <url>https://github.com/google/openrtb/issues</url>
  </issueManagement>

  <distributionManagement>
    <repository>
      <id>sonatype-nexus-staging</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

  <modules>
    <module>openrtb-core</module>
  </modules>

  <prerequisites>
    <maven>3.1.0</maven>
  </prerequisites>

  <properties>
    <findBugsJsr305Version>3.0.2</findBugsJsr305Version>
    <gpg.skip>true</gpg.skip>
    <guavaVersion>31.1-jre</guavaVersion>
    <injectVersion>1</injectVersion>
    <junitVersion>4.13.2</junitVersion>
    <metricsVersion>4.2.10</metricsVersion>
    <protobufVersion>3.21.3</protobufVersion>
    <slf4jVersion>1.7.36</slf4jVersion>
    <truthVersion>1.1.3</truthVersion>

    <!-- Plugin versions -->
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

    <!-- Protobuf properties -->
    <generatedSources>${project.basedir}/target/generated-sources</generatedSources>
    <protobufSource>${project.basedir}/src/main/protobuf</protobufSource>
    <protobufGenerated>${generatedSources}/protobuf</protobufGenerated>
    <testGeneratedSources>${project.basedir}/target/generated-test-sources</testGeneratedSources>
    <testProtobufSource>${project.basedir}/src/test/protobuf</testProtobufSource>
    <testProtobufGenerated>${testGeneratedSources}/protobuf</testProtobufGenerated>

    <!-- Cobertura properties -->
    <cobertura.maxmem>1G</cobertura.maxmem>
  </properties>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          <aggregate>true</aggregate>
          <format>xml</format>
        </configuration>
      </plugin>
    </plugins>
  </reporting>

  <scm>
    <connection>scm:git:https://github.com/google/openrtb.git</connection>
    <developerConnection>scm:git:https://github.com/google/openrtb.git</developerConnection>
    <tag>2.0.2</tag>
  </scm>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-clean-plugin</artifactId>
        <version>3.1.0</version>
      </plugin>

      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.2.0</version>
      </plugin>

      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.2.1</version>
      </plugin>

      <plugin>
        <artifactId>maven-deploy-plugin</artifactId>
        <version>2.8.2</version>
      </plugin>

      <plugin>
        <artifactId>maven-install-plugin</artifactId>
        <version>2.5.2</version>
      </plugin>

      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>3.0.0</version>
      </plugin>

      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.9.0</version>
      </plugin>

      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>3.1.2</version>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>3.1.0</version>
      </plugin>

      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.2</version>
        <configuration>
          <redirectTestOutputToFile>true</redirectTestOutputToFile>
          <argLine>-Djava.util.logging.config.file=src/test/resources/logging.properties</argLine>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>cobertura-maven-plugin</artifactId>
        <version>2.7</version>
        <configuration>
          <format>xml</format>
          <format>html</format>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.2.0</version>
        <configuration>
          <windowtitle>${project.name}</windowtitle>
          <notimestamp>true</notimestamp>
          <excludePackageNames />
          <additionalOptions>
            <additionalOption>-Xdoclint:none</additionalOption>
          </additionalOptions>
          <groups>
            <group>
              <title>OpenRTB</title>
              <packages>com.google.openrtb:com.google.openrtb.json:com.google.openrtb.snippet:com.google.openrtb.util</packages>
            </group>
          </groups>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5.3</version>
        <configuration>
          <autoVersionSubmodules>true</autoVersionSubmodules>
          <preparationGoals>clean verify javadoc:aggregate</preparationGoals>
        </configuration>
      </plugin>

      <plugin>
        <artifactId>maven-gpg-plugin</artifactId>
        <version>1.6</version>
        <executions>
          <execution>
            <id>sign-artifacts</id>
            <phase>verify</phase>
            <goals><goal>sign</goal></goals>
          </execution>
        </executions>
      </plugin>

      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.1</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
