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

    Copyright © 2020 Lei Zhang (zhanglei@apache.org)

    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.github.spring-bees</groupId>
    <artifactId>spring-beet-build</artifactId>
    <version>1.0.1</version>
  </parent>
  <artifactId>spring-beet-dependencies</artifactId>
  <packaging>pom</packaging>

  <properties>
    <spring.boot.version>2.3.0.RELEASE</spring.boot.version>
    <spring.cloud.version>Hoxton.SR5</spring.cloud.version>
    <guava.version>29.0-jre</guava.version>
    <jacoco.version>0.8.5</jacoco.version>
    <java.version>1.8</java.version>
    <junit-benchmarks.version>0.7.2</junit-benchmarks.version>
    <junit-jupiter.version>5.6.2</junit-jupiter.version>
    <kafka.version>2.5.0</kafka.version>
    <!-- dependencies -->
    <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <mockito.version>2.23.4</mockito.version>
    <mybatis-spring-boot-starter.version>2.1.2</mybatis-spring-boot-starter.version>
    <pagehelper.version>1.2.13</pagehelper.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <scala.version>2.12</scala.version>
    <hazelcast.version>4.0.1</hazelcast.version>
    <awaitility.version>3.0.0</awaitility.version>
    <akka.version>2.6.5</akka.version>
    <mariadb.version>2.6.1</mariadb.version>
    <!-- plugin dependencies -->
    <slf4j.version>1.7.25</slf4j.version>
    <spotbugs.version>4.0.3</spotbugs.version>
    <timestamp>${maven.build.timestamp}</timestamp>
    <zookeeper.version>3.5.7</zookeeper.version>
    <coveralls-maven-plugin.version>4.3.0</coveralls-maven-plugin.version>
    <maven-archetype-plugin.version>3.1.2</maven-archetype-plugin.version>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>${spring.boot.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-parent</artifactId>
        <version>${spring.cloud.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <!-- spring beet -->
      <dependency>
        <groupId>com.github.spring-bees</groupId>
        <artifactId>spring-beet-common</artifactId>
        <version>1.0.1</version>
      </dependency>
      <dependency>
        <groupId>com.github.spring-bees</groupId>
        <artifactId>spring-beet-logging</artifactId>
        <version>1.0.1</version>
      </dependency>
      <dependency>
        <groupId>com.github.spring-bees</groupId>
        <artifactId>spring-beet-logging-kafka</artifactId>
        <version>1.0.1</version>
      </dependency>
      <dependency>
        <groupId>com.github.spring-bees</groupId>
        <artifactId>spring-beet-web</artifactId>
        <version>1.0.1</version>
      </dependency>
      <dependency>
        <groupId>com.github.spring-bees</groupId>
        <artifactId>spring-beet-test</artifactId>
        <version>1.0.1</version>
      </dependency>
      <dependency>
        <groupId>com.github.spring-bees</groupId>
        <artifactId>spring-beet-cloud-eureka</artifactId>
        <version>1.0.1</version>
      </dependency>
      <dependency>
        <groupId>com.github.spring-bees</groupId>
        <artifactId>spring-beet-build-tools</artifactId>
        <version>1.0.0-SNAPSHOT</version>
      </dependency>
      <!-- logging -->
      <dependency>
        <artifactId>slf4j-api</artifactId>
        <groupId>org.slf4j</groupId>
        <version>${slf4j.version}</version>
      </dependency>
      <!-- database -->
      <dependency>
        <artifactId>mybatis-spring-boot-starter</artifactId>
        <groupId>org.mybatis.spring.boot</groupId>
        <version>${mybatis-spring-boot-starter.version}</version>
      </dependency>
      <dependency>
        <artifactId>pagehelper-spring-boot-starter</artifactId>
        <groupId>com.github.pagehelper</groupId>
        <version>${pagehelper.version}</version>
      </dependency>
      <dependency>
        <groupId>org.mariadb.jdbc</groupId>
        <artifactId>mariadb-java-client</artifactId>
        <version>${mariadb.version}</version>
      </dependency>
      <!-- google -->
      <dependency>
        <artifactId>guava</artifactId>
        <groupId>com.google.guava</groupId>
        <version>${guava.version}</version>
      </dependency>
      <!-- kafka -->
      <dependency>
        <artifactId>kafka-clients</artifactId>
        <groupId>org.apache.kafka</groupId>
        <version>${kafka.version}</version>
      </dependency>
      <dependency>
        <groupId>com.hazelcast</groupId>
        <artifactId>hazelcast-all</artifactId>
        <version>${hazelcast.version}</version>
      </dependency>
      <!-- akka -->
      <dependency>
        <groupId>com.typesafe.akka</groupId>
        <artifactId>akka-actor-typed_${scala.version}</artifactId>
        <version>${akka.version}</version>
      </dependency>
      <dependency>
        <groupId>com.typesafe.akka</groupId>
        <artifactId>akka-cluster-typed_${scala.version}</artifactId>
        <version>${akka.version}</version>
      </dependency>
      <!-- test -->
      <dependency>
        <artifactId>kafka_${scala.version}</artifactId>
        <exclusions>
          <exclusion>
            <artifactId>slf4j-api</artifactId>
            <groupId>org.slf4j</groupId>
          </exclusion>
          <exclusion>
            <artifactId>slf4j-log4j12</artifactId>
            <groupId>org.slf4j</groupId>
          </exclusion>
          <exclusion>
            <artifactId>log4j</artifactId>
            <groupId>log4j</groupId>
          </exclusion>
          <exclusion>
            <artifactId>zookeeper</artifactId>
            <groupId>org.apache.zookeeper</groupId>
          </exclusion>
        </exclusions>
        <groupId>org.apache.kafka</groupId>
        <version>${kafka.version}</version>
      </dependency>
      <dependency>
        <artifactId>zookeeper</artifactId>
        <exclusions>
          <exclusion>
            <artifactId>slf4j-api</artifactId>
            <groupId>org.slf4j</groupId>
          </exclusion>
          <exclusion>
            <artifactId>junit</artifactId>
            <groupId>junit</groupId>
          </exclusion>
          <exclusion>
            <artifactId>slf4j-log4j12</artifactId>
            <groupId>org.slf4j</groupId>
          </exclusion>
          <exclusion>
            <artifactId>log4j</artifactId>
            <groupId>log4j</groupId>
          </exclusion>
        </exclusions>
        <groupId>org.apache.zookeeper</groupId>
        <version>${zookeeper.version}</version>
      </dependency>
      <dependency>
        <artifactId>log4j-over-slf4j</artifactId>
        <groupId>org.slf4j</groupId>
        <scope>test</scope>
        <version>${slf4j.version}</version>
      </dependency>
      <dependency>
        <artifactId>junit-benchmarks</artifactId>
        <groupId>com.carrotsearch</groupId>
        <scope>test</scope>
        <version>${junit-benchmarks.version}</version>
      </dependency>
      <dependency>
        <artifactId>mockito-core</artifactId>
        <exclusions>
          <exclusion>
            <artifactId>hamcrest-core</artifactId>
            <groupId>org.hamcrest</groupId>
          </exclusion>
        </exclusions>
        <groupId>org.mockito</groupId>
        <scope>test</scope>
        <version>${mockito.version}</version>
      </dependency>
      <dependency>
        <artifactId>junit-jupiter-migrationsupport</artifactId>
        <groupId>org.junit.jupiter</groupId>
        <scope>test</scope>
        <version>${junit-jupiter.version}</version>
      </dependency>
      <dependency>
        <groupId>org.awaitility</groupId>
        <artifactId>awaitility</artifactId>
        <scope>test</scope>
        <version>${awaitility.version}</version>
      </dependency>
      <dependency>
        <groupId>com.github.spotbugs</groupId>
        <artifactId>spotbugs-annotations</artifactId>
        <version>${spotbugs.version}</version>
        <scope>provided</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>jacoco-maven-plugin</artifactId>
          <groupId>org.jacoco</groupId>
          <version>${jacoco.version}</version>
        </plugin>
        <plugin>
          <artifactId>maven-archetype-plugin</artifactId>
          <groupId>org.apache.maven.plugins</groupId>
          <version>${maven-archetype-plugin.version}</version>
        </plugin>
        <plugin>
          <groupId>org.eluder.coveralls</groupId>
          <artifactId>coveralls-maven-plugin</artifactId>
          <version>${coveralls-maven-plugin.version}</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>