<?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>
    <artifactId>konduit-serving</artifactId>
    <groupId>ai.konduit.serving</groupId>
    <version>0.0.2</version>
  </parent>

  <groupId>ai.konduit.serving</groupId>
  <artifactId>konduit-serving-tensorrt</artifactId>

  <name>konduit-serving-tensorrt</name>


  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <tensorrt.version>8.2</tensorrt.version>
  </properties>

  <dependencies>
    <dependency>
      <groupId>ai.konduit.serving</groupId>
      <artifactId>konduit-serving-tensorrt-config</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.nd4j</groupId>
      <artifactId>nd4j-api</artifactId>
    </dependency>


    <dependency>
      <groupId>org.bytedeco</groupId>
      <artifactId>tensorrt</artifactId>
      <version>${tensorrt.version}-${javacpp.version}</version>
    </dependency>

    <dependency>
      <groupId>org.bytedeco</groupId>
      <artifactId>tensorrt-platform</artifactId>
      <version>${tensorrt.version}-${javacpp.version}</version>
    </dependency>

    <dependency>
      <groupId>ai.konduit.serving</groupId>
      <artifactId>konduit-serving-core</artifactId>
      <version>${project.version}</version>
    </dependency>

    <dependency>
      <groupId>ai.konduit.serving</groupId>
      <artifactId>konduit-serving-common-tests</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>ai.konduit.serving</groupId>
      <artifactId>konduit-serving-onnx</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.nd4j</groupId>
      <artifactId>nd4j-native</artifactId>
      <version>${dl4j.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.bytedeco</groupId>
      <artifactId>dnnl-platform</artifactId>
      <version>2.3-1.5.6</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>ai.konduit.serving</groupId>
      <artifactId>konduit-serving-annotation</artifactId>
      <version>${project.version}</version>
    </dependency>



    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
    </dependency>

    <dependency>
      <groupId>org.bytedeco</groupId>
      <artifactId>cuda-platform</artifactId>
      <version>${cuda.version}-${cudnn.version}-${javacpp.presets.version}</version>
    </dependency>
    <dependency>
      <groupId>org.reflections</groupId>
      <artifactId>reflections</artifactId>
      <version>0.9.10</version>
      <scope>compile</scope>
    </dependency>

  </dependencies>


  <build>
    <plugins>
      <!-- Disable enforcer plugin dependency convergence for this module (which doesn't actually use the dependencies
     other than to aggregate metadata -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-enforcer-plugin</artifactId>
        <version>${maven-enforcer-plugin.version}</version>
        <executions>
          <execution>
            <id>enforce-maven</id>
            <goals>
              <goal>enforce</goal>
            </goals>
            <configuration>
              <skip>true</skip>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>cuda-redist</id>
      <activation>
        <activeByDefault>false</activeByDefault>
      </activation>
      <dependencies>
        <dependency>
          <groupId>org.bytedeco</groupId>
          <artifactId>cuda-platform-redist</artifactId>
          <version>11.2-8.1-1.5.5</version>
          <scope>test</scope>
        </dependency>

        <dependency>
          <groupId>org.bytedeco</groupId>
          <artifactId>tensorrt-platform-redist</artifactId>
          <version>8.0-1.5.6</version>
          <scope>test</scope>
        </dependency>
      </dependencies>
    </profile>
  </profiles>


</project>
