<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2019 - 2024 StreamNative, Inc.. All Rights Reserved.

-->
<!--

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<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>pulsar-protocol-handler-kafka-parent</artifactId>
    <groupId>io.streamnative.pulsar.handlers</groupId>
    <version>4.2.1.7</version>
  </parent>

  <artifactId>oauth-client-original</artifactId>
  <name>StreamNative :: Pulsar Protocol Handler :: OAuth 2.0 Client</name>
  <description>OAuth 2.0 login callback handler for Kafka client</description>

  <properties>
    <!-- oauth-client-original is the pre-shading intermediate artifact; consumers use the shaded oauth-client -->
    <maven.deploy.skip>true</maven.deploy.skip>
  </properties>

  <!-- include the dependencies -->
  <dependencies>
    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.kafka</groupId>
      <artifactId>kafka-clients</artifactId>
      <scope>provided</scope>
    </dependency>

    <!-- When using this library with Kafka clients, the org.apache.avro:avro dependency should be provided from
         the kafka-avro-serializer dependency. When depending on this library in the KSN core, you must exclude the
         org.apache.avro:avro dependency to use it's own avro dependency -->
    <dependency>
      <groupId>io.confluent</groupId>
      <artifactId>kafka-schema-registry-client</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <scope>compile</scope>
    </dependency>

    <dependency>
      <groupId>org.testng</groupId>
      <artifactId>testng</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>io.streamnative.pulsar.handlers</groupId>
      <artifactId>test-listener</artifactId>
      <scope>test</scope>
    </dependency>

  </dependencies>

  <repositories>
    <repository>
      <id>io-confluent</id>
      <url>https://packages.confluent.io/maven/</url>
    </repository>
  </repositories>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <release>${client.plugin.compiler.release}</release>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.sonatype.central</groupId>
        <artifactId>central-publishing-maven-plugin</artifactId>
        <configuration>
          <skipPublishing>true</skipPublishing>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
