<?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>
  <groupId>com.datarobot</groupId>
  <artifactId>datarobot-mlops</artifactId>
  <name>${project.groupId}:${project.artifactId}</name>
  <version>9.0.6</version>
  <description>DataRobot MLOps Java Lib</description>
  <url>https://datarobot.com</url>
  <developers>
    <developer>
      <name>DataRobot</name>
      <email>info@datarobot.com</email>
      <organization>DataRobot, Inc.</organization>
      <organizationUrl>https://www.datarobot.com</organizationUrl>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>DataRobot Tool and Utility Agreement</name>
      <url>https://www.datarobot.com/wp-content/uploads/2021/07/DataRobot-Tool-and-Utility-Agreement.pdf</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:git://github.com/datarobot</connection>
    <developerConnection>scm:git:ssh://github.com:datarobot</developerConnection>
    <url>https://github.com/datarobot</url>
  </scm>
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.1</version>
          <configuration>
            <compilerArgs>
              <arg>-Xlint:unchecked</arg>
              <arg>-Xlint:deprecation</arg>
            </compilerArgs>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.22.0</version>
      </plugin>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
          <source>${java.version}</source>
          <target>${java.version}</target>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>module-info.class</exclude>
                <exclude>META-INF/*.SF</exclude>
                <exclude>META-INF/*.DSA</exclude>
                <exclude>META-INF/*.RSA</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-help-plugin</artifactId>
        <version>3.2.0</version>
        <executions>
          <execution>
            <id>show-profiles</id>
            <phase>compile</phase>
            <goals>
              <goal>active-profiles</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>3.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <excludes>
            <exclude>**/*.java</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>3.1.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <doctitle>API for ${project.name} ${project.version}</doctitle>
          <windowtitle>API for ${project.name} ${project.version}</windowtitle>
          <additionalparam>-Xdoclint:none</additionalparam>
          <source>${java.version}</source>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>java8</id>
      <properties>
        <java.version>1.8</java.version>
      </properties>
    </profile>
    <profile>
      <id>java11</id>
      <properties>
        <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable>
        <java.version>11</java.version>
      </properties>
    </profile>
    <profile>
      <id>release-internal</id>
      <distributionManagement>
        <repository>
          <id>central</id>
          <name>datarobot-artifactory-releases</name>
          <url>https://artifactory.devinfra.drdev.io/artifactory/datarobot-maven-releases</url>
        </repository>
        <snapshotRepository>
          <id>snapshots</id>
          <name>datarobot-artifactory-snapshots</name>
          <url>https://artifactory.devinfra.drdev.io/artifactory/datarobot-maven-dev</url>
        </snapshotRepository>
      </distributionManagement>
    </profile>
    <profile>
      <id>release-codegen</id>
      <distributionManagement>
        <repository>
          <id>maven-dev</id>
          <name>datarobot-maven-dev</name>
          <url>https://artifactory.devinfra.drdev.io/artifactory/datarobot-maven-dev</url>
        </repository>
        <relocation>
          <groupId>com.datarobot</groupId>
        </relocation>
      </distributionManagement>
      <properties>
        <java.version>1.8</java.version>
      </properties>
    </profile>
    <profile>
      <id>public-release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.sonatype.plugins</groupId>
            <artifactId>nexus-staging-maven-plugin</artifactId>
            <version>1.6.7</version>
            <extensions>true</extensions>
            <executions>
              <execution>
                <id>injected-nexus-deploy</id>
                <phase>deploy</phase>
                <goals>
                  <goal>deploy</goal>
                </goals>
                <configuration>
                  <serverId>datarobot-sonatype-releases</serverId>
                  <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
                  <autoReleaseAfterClose>false</autoReleaseAfterClose>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <serverId>datarobot-sonatype-releases</serverId>
              <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
              <autoReleaseAfterClose>false</autoReleaseAfterClose>
            </configuration>
          </plugin>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>3.0.1</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
                <configuration>
                  <gpgArguments>
                    <arg>--pinentry-mode</arg>
                    <arg>loopback</arg>
                  </gpgArguments>
                  <keyname>DE2C1B723D9BF5F8FCC8FBC97DD3C2D0C4086B83</keyname>
                </configuration>
              </execution>
            </executions>
            <configuration>
              <keyname>DE2C1B723D9BF5F8FCC8FBC97DD3C2D0C4086B83</keyname>
            </configuration>
          </plugin>
        </plugins>
      </build>
      <distributionManagement>
        <repository>
          <id>${distSonatypeMgmtStagingId}</id>
          <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
          <id>${distSonatypeMgmtSnapshotsId}</id>
          <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
        </snapshotRepository>
      </distributionManagement>
      <properties>
        <distSonatypeMgmtSnapshotsId>datarobot-sonatype-snapshots</distSonatypeMgmtSnapshotsId>
        <java.version>1.8</java.version>
        <distSonatypeMgmtStagingId>datarobot-sonatype-releases</distSonatypeMgmtStagingId>
      </properties>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>datarobot-maven-dev</id>
      <url>https://artifactory.devinfra.drdev.io/artifactory/datarobot-maven-dev/</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <version>5.5.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
        <exclusion>
          <artifactId>opentest4j</artifactId>
          <groupId>org.opentest4j</groupId>
        </exclusion>
        <exclusion>
          <artifactId>junit-platform-commons</artifactId>
          <groupId>org.junit.platform</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.5.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>junit-platform-engine</artifactId>
          <groupId>org.junit.platform</groupId>
        </exclusion>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-params</artifactId>
      <version>5.5.2</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>apiguardian-api</artifactId>
          <groupId>org.apiguardian</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <properties>
    <slf4j.version>1.7.12</slf4j.version>
    <encoding>UTF-8</encoding>
    <mlops.common.version>${project.version}</mlops.common.version>
    <maven.compiler.source>${java.version}</maven.compiler.source>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.target>${java.version}</maven.compiler.target>
  </properties>
</project>
