<?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>net.smolok</groupId>
        <artifactId>smolok-platform-service</artifactId>
        <version>0.0.11</version>
        <relativePath>..</relativePath>
    </parent>
    <artifactId>smolok-service-machinelearning</artifactId>
    <name>${artifactId}</name>

    <properties>
        <image.target>service-machinelearning</image.target>
        <fasterxml.jackson.version>2.6.7</fasterxml.jackson.version>
    </properties>

    <dependencies>
        <!-- Internal dependencies -->
        <dependency>
            <groupId>net.smolok</groupId>
            <artifactId>smolok-bootstrap</artifactId>
        </dependency>
        <dependency>
            <groupId>net.smolok</groupId>
            <artifactId>smolok-service-binding</artifactId>
        </dependency>
        <dependency>
            <groupId>net.smolok</groupId>
            <artifactId>smolok-service-machinelearning-api</artifactId>
        </dependency>

        <!-- External dependencies -->
        <dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-core_2.11</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>org.slf4j</groupId>
                    <artifactId>slf4j-log4j12</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>org.apache.spark</groupId>
            <artifactId>spark-mllib_2.11</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${fasterxml.jackson.version}</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-validator</artifactId>
        </dependency>

        <!-- Optional Spring runtime -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- Optional logger runtime -->
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- Internal testing dependencies -->
        <dependency>
            <groupId>net.smolok</groupId>
            <artifactId>smolok-eventbus</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>net.smolok</groupId>
            <artifactId>smolok-service-binding-client</artifactId>
            <scope>test</scope>
        </dependency>

        <!-- External testing dependencies -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>io.fabric8</groupId>
                <artifactId>docker-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

</project>