<?xml version="1.0" encoding="UTF-8"?>
<!--
~   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>
    <groupId>com.opentable.components</groupId>
    <artifactId>otj-logging-parent</artifactId>
    <version>2.7.2</version>
  </parent>

  <artifactId>otj-logging-kafka</artifactId>
  <name>otj-logging-kafka</name>
  <packaging>jar</packaging>
  <description>Logging component Kafka appender</description>

  <properties>
    <basepom.test.timeout>120</basepom.test.timeout>
  </properties>

  <dependencyManagement>
    <dependencies>
      <!-- Note: We are breaking the cyclic dependency by fixing versions and excluding deps here. If switched from basic
      embedded kafka tests, this would not be safe -->
      <dependency>
        <groupId>com.opentable.components</groupId>
        <artifactId>otj-kafka</artifactId>
        <version>2.6.0</version>
        <scope>test</scope>
        <exclusions>
          <exclusion>
            <groupId>com.opentable.components</groupId>
            <artifactId>otj-metrics</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.opentable.components</groupId>
            <artifactId>otj-spring</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.opentable.components</groupId>
            <artifactId>otj-conservedheaders</artifactId>
          </exclusion>
          <exclusion>
            <groupId>com.opentable.components</groupId>
            <artifactId>otj-scopes</artifactId>
          </exclusion>
        </exclusions>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <dependency>
      <groupId>com.opentable.components</groupId>
      <artifactId>otj-logging</artifactId>
    </dependency>

    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-core</artifactId>
    </dependency>
    <dependency>
      <groupId>ch.qos.logback</groupId>
      <artifactId>logback-classic</artifactId>
    </dependency>

    <dependency>
      <groupId>com.google.guava</groupId>
      <artifactId>guava</artifactId>
    </dependency>

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

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

    <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-library</artifactId>
    </dependency>

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>log4j-over-slf4j</artifactId>
      <scope>runtime</scope>
    </dependency>

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

    <dependency>
      <groupId>com.fasterxml.jackson.module</groupId>
      <artifactId>jackson-module-mrbean</artifactId>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.kafka</groupId>
      <artifactId>kafka_2.12</artifactId>
      <classifier>test</classifier>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>com.opentable.components</groupId>
      <artifactId>otj-kafka</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
