<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2025 ABSA Group Limited
  ~
  ~ Licensed 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">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>za.co.absa.spline</groupId>
        <artifactId>parent-pom</artifactId>
        <version>0.8.2</version>
        <relativePath>../build/parent-pom/pom.xml</relativePath>
    </parent>

    <artifactId>integration-tests</artifactId>

    <name>Spline Integration Tests</name>

    <dependencies>
        <dependency>
            <groupId>org.scalatest</groupId>
            <artifactId>scalatest_${scala.compat.version}</artifactId>
        </dependency>
        <dependency>
            <groupId>com.github.bigwheel</groupId>
            <artifactId>util-backports_${scala.compat.version}</artifactId>
            <version>2.1</version>
        </dependency>
        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>testcontainers</artifactId>
            <version>1.21.3</version>
        </dependency>
        <dependency>
            <groupId>com.github.goodforgod</groupId>
            <artifactId>arangodb-testcontainer</artifactId>
            <version>2.0.0</version>
        </dependency>

        <!-- test scope -->

        <dependency>
            <groupId>za.co.absa.spline</groupId>
            <artifactId>rest-gateway</artifactId>
            <version>${project.version}</version>
            <type>war</type>
        </dependency>

        <dependency>
            <groupId>org.scala-lang.modules</groupId>
            <artifactId>scala-java8-compat_${scala.compat.version}</artifactId>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>za.co.absa.spline</groupId>
            <artifactId>admin</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

    <profiles>
        <profile>
            <id>skip-it-tests</id>
            <activation>
                <!--
                Integration-tests module depends on Testcontainers,
                that are currently not supported on Windows.
                See: https://github.com/testcontainers/testcontainers-java/issues/2960
                Therefore we skip integration tests on Windows.
                -->
                <os>
                    <family>windows</family>
                </os>
            </activation>
            <properties>
                <skipTests>true</skipTests>
            </properties>
        </profile>
    </profiles>

</project>
