<?xml version="1.0" encoding="UTF-8"?>
<!--
   Copyright (C) 2016 Red Hat, Inc.

   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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
      <groupId>io.syndesis</groupId>
      <artifactId>syndesis-parent</artifactId>
      <version>1.2.3</version>
      <relativePath>../pom.xml</relativePath>
  </parent>

  <artifactId>integration-runtime</artifactId>
  <packaging>pom</packaging>

  <name>Runtime :: Parent</name>

  <modules>
    <module>model</module>
    <module>runtime-api</module>
    <module>runtime</module>
  </modules>

  <build>
    <plugins>
      <plugin>
        <groupId>org.basepom.maven</groupId>
        <artifactId>duplicate-finder-maven-plugin</artifactId>
        <configuration>
          <ignoredClassPatterns>
            <ignoredClassPattern>org.objectweb.asm.*</ignoredClassPattern>
          </ignoredClassPatterns>
        </configuration>
      </plugin>
      <plugin>
        <groupId>com.mycila</groupId>
        <artifactId>license-maven-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>.editorconfig</exclude>
            <exclude>license.txt</exclude>
            <exclude>.mvn/wrapper/maven-wrapper.properties</exclude>
            <exclude>mvnw*</exclude>
            <exclude>**/spring.factories</exclude>
            <exclude>**/*.adoc</exclude>
            <exclude>**/test/resources/logback.xml</exclude>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <configuration>
          <ignoredUnusedDeclaredDependencies>
            <ignoredUnusedDeclaredDependency>com.google.auto.service:auto-service</ignoredUnusedDeclaredDependency>
          </ignoredUnusedDeclaredDependencies>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <jackson.version>2.8.10</jackson.version>
    <assertj.version>2.4.1</assertj.version>
    <rest-assured.version>3.0.0</rest-assured.version>
    <spring.version>4.3.11</spring.version>
    <dep.plugin.dependency.version>3.0.1</dep.plugin.dependency.version>
    <auto-service.version>1.0-rc3</auto-service.version>
    <json-path.version>2.4.0</json-path.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <basepom.test.timeout>180</basepom.test.timeout>
    <basepom.failsafe.timeout>180</basepom.failsafe.timeout>
  </properties>


  <dependencyManagement>
    <dependencies>
      <!-- Syndesis Runtime Modules -->
      <dependency>
        <groupId>io.syndesis.integration-runtime</groupId>
        <artifactId>model</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.syndesis.integration-runtime</groupId>
        <artifactId>runtime</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>io.syndesis.integration-runtime</groupId>
        <artifactId>runtime-api</artifactId>
        <version>${project.version}</version>
      </dependency>
      <dependency>
        <groupId>${project.groupId}</groupId>
        <artifactId>integration-runtime</artifactId>
        <version>${project.version}</version>
      </dependency>

      <!-- project dependencies -->
      <dependency>
        <groupId>com.fasterxml.jackson</groupId>
        <artifactId>jackson-bom</artifactId>
        <version>${jackson.version}</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>${spring-boot.version}</version>
        <scope>import</scope>
        <type>pom</type>
      </dependency>
      <dependency>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-spring-boot-dependencies</artifactId>
        <version>${camel.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>

      <dependency>
        <groupId>com.google.auto.service</groupId>
        <artifactId>auto-service</artifactId>
        <version>${auto-service.version}</version>
      </dependency>
      <dependency>
        <groupId>com.jayway.jsonpath</groupId>
        <artifactId>json-path</artifactId>
        <version>${json-path.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <profiles>
    <profile>
      <id>doclint-java8-disable</id>
      <activation>
        <jdk>[1.8,)</jdk>
      </activation>
      <properties>
        <javadoc.opts>-Xdoclint:none</javadoc.opts>
      </properties>
    </profile>
  </profiles>

</project>
