<?xml version="1.0" encoding="UTF-8"?>
<!-- ~ Copyright 2017 Red Hat, Inc. and/or its affiliates. ~ ~ 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>droolsjbpm-integration</artifactId>
    <groupId>org.drools</groupId>
    <version>7.23.0.Final</version>
  </parent>

  <groupId>org.kie</groupId>
  <artifactId>kie-spring-boot</artifactId>
  <packaging>pom</packaging>

  <name>KIE :: Spring :: Boot</name>
  <description>Parent integration project for SpringBoot</description>

  <modules>
    <module>kie-spring-boot-starters</module>
    <module>kie-spring-boot-samples</module>
    <module>kie-spring-boot-autoconfiguration</module>
  </modules>

  <properties>
    <version.org.springframework>5.1.3.RELEASE</version.org.springframework>
    <version.org.spring-boot>2.1.1.RELEASE</version.org.spring-boot>
    <version.org.apache.cxf>3.2.6</version.org.apache.cxf>
    <version.me.snowdrop.narayana>2.1.0</version.me.snowdrop.narayana>
    <version.org.apache.commons-dbcp2>2.4.0</version.org.apache.commons-dbcp2>
    
    <version.javax.validation>2.0.1.Final</version.javax.validation>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>${version.org.spring-boot}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter</artifactId>
	<version>${version.org.spring-boot}</version>
	<exclusions>
	    <exclusion>
	      <groupId>org.apache.logging.log4j</groupId>
              <artifactId>log4j-api</artifactId>
            </exclusion>
	  </exclusions>
      </dependency>
      <!-- overrides of narayana version -->
      <dependency>
        <groupId>org.jboss.narayana.jta</groupId>
        <artifactId>jdbc</artifactId>
        <version>${version.org.jboss.narayana.tomcat}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.narayana.jta</groupId>
        <artifactId>jms</artifactId>
        <version>${version.org.jboss.narayana.tomcat}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.narayana.jta</groupId>
        <artifactId>jta</artifactId>
        <version>${version.org.jboss.narayana.tomcat}</version>
      </dependency>
      <dependency>
        <groupId>org.jboss.narayana.jts</groupId>
        <artifactId>narayana-jts-integration</artifactId>
        <version>${version.org.jboss.narayana.tomcat}</version>
      </dependency>

      <!-- spring boot auto configuration modules -->
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>jbpm-spring-boot-data-sources</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>jbpm-spring-boot-autoconfiguration</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-server-spring-boot-autoconfiguration</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-server-spring-boot-autoconfiguration-drools</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-server-spring-boot-autoconfiguration-jbpm</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-server-spring-boot-autoconfiguration-optaplanner</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!-- starters -->
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>jbpm-spring-boot-starter-basic</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>jbpm-spring-boot-starter-actuator</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>org.kie</groupId>
        <artifactId>kie-server-spring-boot-starter</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!-- cxf jaxrs version comes from spring-boot-dependencies -->
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-spring-boot-starter-jaxrs</artifactId>
        <version>${version.org.apache.cxf}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-core</artifactId>
        <version>${version.org.apache.cxf}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-rt-frontend-jaxrs</artifactId>
        <version>${version.org.apache.cxf}</version>
      </dependency>

      <dependency>
        <groupId>me.snowdrop</groupId>
        <artifactId>narayana-spring-boot-starter</artifactId>
        <version>${version.me.snowdrop.narayana}</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-dbcp2</artifactId>
        <version>${version.org.apache.commons-dbcp2}</version>
      </dependency>

    </dependencies>
  </dependencyManagement>
</project>
