<?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>

  <groupId>io.confluent.flink</groupId>
  <artifactId>cp-flink-models-parent</artifactId>
  <version>0.1.0</version>
  <packaging>pom</packaging>

  <modules>
    <module>ai-detect-anomalies</module>
  </modules>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <!--
    'release' (not source/target) so the JDK 11 API surface is enforced at compile time.
    A class file newer than the compute pool's JVM fails only when the job runs, long
    after upload and CREATE FUNCTION both succeeded.
    -->
    <maven.compiler.release>11</maven.compiler.release>
    <!--
    The functions support CP Flink SQL 2.3 only. This is its internal Flink build in CodeArtifact,
    the one CMF compiles against (CMF's flink-2x.version).
    -->
    <flink.version>0.0203-16-cp</flink.version>
  </properties>

  <build>
    <pluginManagement>
      <plugins>
        <!-- Writes the SBOM that `make cve-scan-maven` scans. -->
        <plugin>
          <groupId>org.cyclonedx</groupId>
          <artifactId>cyclonedx-maven-plugin</artifactId>
          <version>2.9.3</version>
          <configuration>
            <outputFormat>json</outputFormat>
            <!-- Flink is provided: CP Flink ships it, not the UDF JARs. -->
            <includeProvidedScope>false</includeProvidedScope>
          </configuration>
        </plugin>
        <!-- Sets the release version in `make stage-release`. -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>versions-maven-plugin</artifactId>
          <version>2.23.0</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
