<?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">
    <parent>
        <groupId>org.talend.bigdata.libs</groupId>
        <artifactId>talend-bigdata-launcher</artifactId>
        <version>2.16.8</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>talend-bigdata-launcher-cde</artifactId>

    <!-- Repository IDs match the server entries in continuous-integration/settings.xml
         so that CI credentials are applied automatically.
         NOTE: talend-update-central is intentionally omitted — it returns an HTML error
         page for cde-java-sdk instead of the actual JAR. Use talend-update-libraries only. -->
    <repositories>
        <repository>
            <id>talend-update-libraries</id>
            <url>https://talend-update.talend.com/nexus/content/repositories/libraries/</url>
            <releases>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>

    <dependencies>
        <dependency>
            <groupId>org.talend.bigdata.libs</groupId>
            <artifactId>talend-bigdata-launcher-core</artifactId>
            <version>${project.parent.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.talend.bigdata.libs</groupId>
            <artifactId>cde-java-sdk</artifactId>
            <version>1.13.0</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-all</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.knox</groupId>
            <artifactId>gateway-shell</artifactId>
            <version>1.6.1</version>
        </dependency>
        <!-- Provides org.apache.knox.gateway.util.JsonUtils, used to parse the CDE token
             response; not a transitive dependency of gateway-shell. -->
        <dependency>
            <groupId>org.apache.knox</groupId>
            <artifactId>gateway-util-common</artifactId>
            <version>1.6.1</version>
        </dependency>
        <!-- gateway-shell references classes (e.g. MessagesFactory) from this module at
             static-init time; it is not pulled in transitively. -->
        <dependency>
            <groupId>org.apache.knox</groupId>
            <artifactId>gateway-i18n</artifactId>
            <version>1.6.1</version>
        </dependency>
    </dependencies>
    <properties>
        <maven.compiler.source>8</maven.compiler.source>
        <maven.compiler.target>8</maven.compiler.target>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
            </plugin>
            <!-- Activates the prepare-agent/report executions declared in the root pom's
                 pluginManagement; without this the surefire.argLine property jacoco is meant
                 to set is never populated, and the "@{surefire.argLine}" placeholder in the
                 inherited surefire argLine is passed to the JVM literally, crashing the fork. -->
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
</project>
