<?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>org.camunda.bpm.extension</groupId>
        <artifactId>camunda-bpm-process-test-coverage-root</artifactId>
        <version>1.0.3</version>
    </parent>

    <name>Camunda BPM Process Test Coverage Extension Parent</name>
    <artifactId>camunda-bpm-process-test-coverage-parent</artifactId>
    <packaging>pom</packaging>

    <modules>
        <module>core</module>
        <module>junit4</module>
        <module>junit5</module>
        <module>spring-test</module>
        <module>report-generator</module>
    </modules>

    <properties>
        <!--
        For backwards compatibility we pin the version to compile to Camunda 7.14.
        Camunda 7.15 introduced a dependency to Feel DMN engine which is
        initialized on start-up and is failing if not present on the class path
        with: java.lang.NoClassDefFoundError: org/camunda/feel/context/Context
        -->
        <camunda.compile.version>7.14.0</camunda.compile.version>
        <spring-boot.version>2.6.3</spring-boot.version>

        <npm.version>6.14.8</npm.version>
        <node.version>v10.22.0</node.version>
        <gson.version>2.8.6</gson.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- Spring Boot import -->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>${spring-boot.version}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>

            <!-- Camunda -->
            <dependency>
                <groupId>org.camunda.bpm</groupId>
                <artifactId>camunda-bom</artifactId>
                <version>${camunda.compile.version}</version>
                <scope>import</scope>
                <type>pom</type>
            </dependency>

            <!-- Own modules -->
            <dependency>
                <groupId>org.camunda.bpm.extension</groupId>
                <artifactId>camunda-bpm-process-test-coverage-core</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.camunda.bpm.extension</groupId>
                <artifactId>camunda-bpm-process-test-coverage-junit4</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.camunda.bpm.extension</groupId>
                <artifactId>camunda-bpm-process-test-coverage-junit5</artifactId>
                <version>${project.version}</version>
            </dependency>
            <dependency>
                <groupId>org.camunda.bpm.extension</groupId>
                <artifactId>camunda-bpm-process-test-coverage-report-generator</artifactId>
                <version>${project.version}</version>
            </dependency>

        </dependencies>
    </dependencyManagement>

    <dependencies>
        <!-- Kotlin -->
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-common</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-jdk8</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-reflect</artifactId>
        </dependency>
    </dependencies>

    <build>
        <defaultGoal>clean install</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>regression-test</id>
            <activation>
                <property><name>!skipExamples</name></property>
            </activation>
            <modules>
                <module>regression-test</module>
            </modules>
        </profile>
    </profiles>

</project>
