<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you 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">

    <parent>
        <groupId>org.ctoolkit.maven</groupId>
        <artifactId>ctoolkit-public</artifactId>
        <version>2</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <modules>
        <module>ctoolkit-agent-core</module>
        <module>ctoolkit-agent-sql</module>
        <module>ctoolkit-agent-elasticsearch</module>
        <module>ctoolkit-agent-mongo</module>
    </modules>

    <groupId>org.ctoolkit.agent</groupId>
    <artifactId>ctoolkit-agent-parent</artifactId>
    <packaging>pom</packaging>
    <version>1.0.1</version>
    <name>CtoolkiT Agent parent</name>
    <description>Cloud Toolkit Migration Agent parent</description>

    <scm>
        <connection>scm:git:[fetch=]git@github.com:turnonline/ctoolkit-agent.git</connection>
        <developerConnection>scm:git:[push=]git@github.com:turnonline/ctoolkit-agent.git</developerConnection>
        <url>https://github.com/turnonline/ctoolkit-agent</url>
        <tag>ctoolkit-agent-parent-1.0.1</tag>
    </scm>

    <issueManagement>
        <url>https://github.com/turnonline/ctoolkit-agent/issues</url>
    </issueManagement>

    <developers>
        <developer>
            <name>Aurel Medvegy</name>
            <id>medvegy</id>
            <email>aurel.medvegy@ctoolkit.org</email>
        </developer>
        <developer>
            <name>Jozef Pohorelec</name>
            <id>pohorelec</id>
            <email>jozef.pohorelec@ctoolkit.org</email>
        </developer>
    </developers>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.ctoolkit.agent</groupId>
                <artifactId>ctoolkit-agent-core</artifactId>
                <version>${project.version}</version>
            </dependency>

            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
            </dependency>

            <dependency>
                <groupId>io.swagger</groupId>
                <artifactId>swagger-annotations</artifactId>
                <version>${swagger-annotations.version}</version>
            </dependency>

            <dependency>
                <groupId>org.apache.beam</groupId>
                <artifactId>beam-sdks-java-core</artifactId>
                <version>${apache-beam.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.beam</groupId>
                <artifactId>beam-runners-direct-java</artifactId>
                <version>${apache-beam.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.beam</groupId>
                <artifactId>beam-runners-spark</artifactId>
                <version>${apache-beam.version}</version>
            </dependency>

            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${logback.version}</version>
                <scope>runtime</scope>
            </dependency>

            <dependency>
                <groupId>io.micronaut</groupId>
                <artifactId>bom</artifactId>
                <version>${micronaut.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.7.0</version>
                <configuration>
                    <source>${jdk.version}</source>
                    <target>${jdk.version}</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>docker-push</id>
            <distributionManagement>
                <repository>
                    <id>turnonline</id>
                    <uniqueVersion>false</uniqueVersion>
                    <layout>legacy</layout>
                    <url>https://index.docker.io/v1/</url>
                </repository>
            </distributionManagement>
        </profile>
    </profiles>

    <properties>
        <jdk.version>1.8</jdk.version>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>

        <micronaut.version>1.0.0.M3</micronaut.version>
        <apache-beam.version>2.6.0</apache-beam.version>
        <swagger-annotations.version>1.5.20</swagger-annotations.version>
        <logback.version>1.2.3</logback.version>
        <junit.version>4.12</junit.version>
        <elasticsearch.version>6.3.2</elasticsearch.version>
        <mongo.version>3.8.2</mongo.version>

        <exec.mainClass>org.ctoolkit.agent.Application</exec.mainClass>
    </properties>
</project>