<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ // (Copyright) [2019-${current_year}] Confluent, Inc.
  -->

<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">
    <parent>
        <artifactId>confluent-security-plugins</artifactId>
        <groupId>io.confluent</groupId>
        <version>7.4.7</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>confluent-ksql-security-plugin</artifactId>

    <properties>
        <vertx.version>4.4.8</vertx.version>
        <io.confluent.ksql.version>${confluent.version.range}</io.confluent.ksql.version>
        <ksql-jetty-jaas.version>9.4.44.v20210927</ksql-jetty-jaas.version>
    </properties>

    <dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-jaas</artifactId>
            <version>${ksql-jetty-jaas.version}</version>
          </dependency>
        </dependencies>
    </dependencyManagement>

    <dependencies>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-codec-http</artifactId>
            <version>${netty.version}</version>
        </dependency>
        <dependency>
            <groupId>io.confluent</groupId>
            <artifactId>rest-utils</artifactId>
            <version>${io.confluent.rest-utils.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>io.confluent.ksql</groupId>
            <artifactId>ksqldb-rest-app</artifactId>
            <version>${io.confluent.ksql.version}</version>
            <scope>provided</scope>
            <exclusions>
                <exclusion>
                    <groupId>com.google.guava</groupId>
                    <artifactId>guava</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>io.confluent.ksql</groupId>
            <artifactId>ksqldb-common</artifactId>
            <version>${io.confluent.ksql.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.vertx</groupId>
            <artifactId>vertx-core</artifactId>
            <version>${vertx.version}</version>
        </dependency>
        <dependency>
            <groupId>io.vertx</groupId>
            <artifactId>vertx-codegen</artifactId>
            <version>${vertx.version}</version>
        </dependency>
        <dependency>
            <groupId>io.vertx</groupId>
            <artifactId>vertx-web</artifactId>
            <version>${vertx.version}</version>
        </dependency>
        <dependency>
            <groupId>io.confluent</groupId>
            <artifactId>confluent-security-plugins-common</artifactId>
            <version>${io.confluent.confluent-security-plugins.version}</version>
        </dependency>
        <dependency>
            <groupId>io.confluent</groupId>
            <artifactId>rest-authorizer</artifactId>
            <version>${ce.kafka.version}</version>
            <exclusions>
                <exclusion>
                    <groupId>org.bouncycastle</groupId>
                    <artifactId>bcpkix-jdk15on</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.bouncycastle</groupId>
                    <artifactId>bcpkix-jdk18on</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>io.confluent</groupId>
            <artifactId>authorizer</artifactId>
            <version>${ce.kafka.version}</version>
        </dependency>

        <!-- To ensure that KSQL is run with all CE jars when plugins are installed, plugins package
             needs CE versions of all Kafka jars used by KSQL. Since we don't include KSQL in the
             plugins package, ce-kafka dependencies of KSQL that are not actual plugin dependencies
             are also added here as dependencies.
         -->
        <dependency>
            <groupId>org.apache.kafka</groupId>
            <artifactId>kafka-streams</artifactId>
            <version>${ce.kafka.version}</version>
        </dependency>
        <dependency>
            <groupId>io.confluent</groupId>
            <artifactId>confluent-schema-registry-security-plugin</artifactId>
            <version>${io.confluent.confluent-security-plugins.version}</version>
        </dependency>
    </dependencies>
</project>
