<?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>com.noumenadigital.platform</groupId>
        <artifactId>parent-pom</artifactId>
        <version>2024.2.8</version>
        <relativePath>../parent-pom</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>engine-testing</artifactId>
    <name>${project.artifactId}</name>
    <description>Provides various utilities to test NPL source code</description>
    <url>https://documentation.noumenadigital.com/</url>

    <licenses>
        <license>
            <name>NOUMENA Development License</name>
            <url>https://documentation.noumenadigital.com/docs/licenses#development</url>
        </license>
    </licenses>

    <scm>
        <url>https://github.com/NoumenaDigital/platform</url>
    </scm>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <groupId>org.apache.maven.plugins</groupId>
            </plugin>
            <plugin>
                <artifactId>kotlin-maven-plugin</artifactId>
                <groupId>org.jetbrains.kotlin</groupId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-enforcer-plugin</artifactId>
                <executions>
                    <execution>
                        <id>enforce-dependencies</id>
                        <goals>
                            <goal>enforce</goal>
                        </goals>
                        <phase>test</phase>
                        <configuration>
                            <rules>
                                <bannedDependencies>
                                    <excludes>
                                        <!-- Noumena "secret sauce" as determined by the TechBoard -->
                                        <exclude>com.noumenadigital.platform:storage-persistent</exclude>
                                        <exclude>com.noumenadigital.platform:history</exclude>
                                        <exclude>com.noumenadigital.platform:history-services</exclude>
                                        <exclude>com.noumenadigital.platform:history-storage</exclude>
                                        <exclude>com.noumenadigital.platform:*-tests</exclude>
                                    </excludes>
                                    <searchTransitive>true</searchTransitive>
                                    <message>Prohibited dependencies found in build!</message>
                                </bannedDependencies>
                            </rules>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>com.noumenadigital.platform</groupId>
            <artifactId>npl-migration</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.noumenadigital.platform</groupId>
            <artifactId>testing</artifactId>
            <version>${project.version}</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
</project>
