<?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>
  <parent>
    <groupId>org.drools</groupId>
    <artifactId>droolsjbpm-integration</artifactId>
    <version>7.56.0.Final</version>
  </parent>

  <name>Drools :: High Availability</name>

  <artifactId>drools-ha</artifactId>
  <packaging>pom</packaging>

  <properties>
    <alphanetworkCompilerEnabled>false</alphanetworkCompilerEnabled>
    <dockerImageName>quickstarter/openshift-kie-springboot</dockerImageName>
    <failOnMissingWebXml>false</failOnMissingWebXml>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <version.annotations>2.0.1.Final</version.annotations>
    <version.fabric8.plugin>4.2.0</version.fabric8.plugin>
    <version.fabric8.docker-plugin>0.30.0</version.fabric8.docker-plugin>
    <surefire.forkCount>1</surefire.forkCount>
    <version.javax.el>3.0.1-b08</version.javax.el>
    <version.javax.ws.rs>2.0.0.Final</version.javax.ws.rs>
    <version.org.apache.kafka>2.2.1</version.org.apache.kafka>
    <version.k8s.client>4.6.0</version.k8s.client>
    <version.logback.kafka.appender>0.2.0-RC2</version.logback.kafka.appender>
    <version.servlet>2.0.0.Final</version.servlet>
    <version.slf4j>1.7.26</version.slf4j>
  </properties>

  <modules>
    <module>ha-remote</module>
    <module>ha-core</module>
    <module>ha-core-infra</module>
  </modules>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.drools</groupId>
        <artifactId>ha-remote</artifactId>
        <version>${version.org.kie}</version>
      </dependency>
      <dependency>
        <groupId>org.drools</groupId>
        <artifactId>ha-core</artifactId>
        <version>${version.org.kie}</version>
      </dependency>
      <dependency>
        <groupId>org.drools</groupId>
        <artifactId>ha-core-infra</artifactId>
        <version>${version.org.kie}</version>
      </dependency>
      <!-- drools -->
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-maven-plugin</artifactId>
        <version>${version.org.kie}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-ci</artifactId>
        <version>${version.org.kie}</version>
        <exclusions>
          <exclusion>
            <groupId>aopalliance</groupId>
            <artifactId>aopalliance</artifactId>
          </exclusion>
        </exclusions>
      </dependency>

      <!-- kafka -->
      <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka-clients</artifactId>
        <version>${version.org.apache.kafka}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka-clients</artifactId>
        <version>${version.org.apache.kafka}</version>
        <classifier>test</classifier>
      </dependency>
      <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka_2.12</artifactId>
        <version>${version.org.apache.kafka}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka_2.12</artifactId>
        <version>${version.org.apache.kafka}</version>
        <classifier>test</classifier>
      </dependency>

      <dependency>
        <groupId>com.github.danielwegener</groupId>
        <artifactId>logback-kafka-appender</artifactId>
        <version>${version.logback.kafka.appender}</version>
        <scope>test</scope>
      </dependency>


      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>${version.com.fasterxml.jackson.databind}</version>
        <scope>compile</scope>
      </dependency>

      <dependency>
        <groupId>org.jboss.spec.javax.annotation</groupId>
        <artifactId>jboss-annotations-api_1.3_spec</artifactId>
        <version>${version.annotations}</version>
        <scope>compile</scope>
      </dependency>

      <!-- fabric8 -->
      <dependency>
        <groupId>io.fabric8</groupId>
        <artifactId>kubernetes-client</artifactId>
        <version>${version.k8s.client}</version>
      </dependency>

      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-module-junit4</artifactId>
        <version>${version.org.powermock}</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.powermock</groupId>
        <artifactId>powermock-api-mockito2</artifactId>
        <version>${version.org.powermock}</version>
        <scope>test</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>
    <finalName>${project.artifactId}</finalName>
  </build>

</project>
