<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>de.adorsys.opba</groupId>
        <artifactId>sandboxes</artifactId>
        <version>0.30.0.1</version>
    </parent>

    <!-- POC that we can run whole sandbox within single JVM and Postgres database for performance and debugging easiness -->
    <artifactId>xs2a-sandbox</artifactId>
    <name>opba-protocols/sandboxes/xs2a-sandbox</name>

    <properties>
        <!-- Hard reference to root directory. Used to reference pmd and checkstyle files from root.
        Change this if depth changes. Current: /open-banking-gateway/opba-protocols/sandboxes/xs2a-sandbox -->
        <main.basedir>${project.parent.parent.parent.basedir}</main.basedir>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>

        <dependency>
            <groupId>org.testcontainers</groupId>
            <artifactId>postgresql</artifactId>
            <version>${testcontainers.version}</version>
        </dependency>

        <!-- YAML parsing to wait for application started -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-yaml</artifactId>
        </dependency>
        <dependency>
            <groupId>org.awaitility</groupId>
            <artifactId>awaitility</artifactId>
        </dependency>

        <!-- List of SANDBOX applications -->
        <!-- https://github.com/adorsys/xs2a -->
        <!-- adorsys/xs2a-connector-examples:5.3.1+ -->
        <!-- Alias XS2A -->
        <dependency>
            <groupId>de.adorsys.ledgers</groupId>
            <artifactId>gateway-app</artifactId>
            <version>5.10</version>
        </dependency>
        <!-- adorsys/xs2a-aspsp-profile:5.3+ AspspProfileApplication -->
        <dependency>
            <groupId>de.adorsys.psd2</groupId>
            <artifactId>aspsp-profile-server</artifactId>
            <version>5.10</version>
            <classifier>exec</classifier>
        </dependency>
        <!-- adorsys/xs2a-consent-management:5.3 -->
        <dependency>
            <groupId>de.adorsys.psd2</groupId>
            <artifactId>cms-standalone-service</artifactId>
            <version>5.10</version>
        </dependency>

        <!-- https://github.com/adorsys/XS2A-Sandbox -->
        <!-- adorsys/xs2a-online-banking -->
        <dependency>
            <groupId>de.adorsys.psd2.sandbox</groupId>
            <artifactId>online-banking-app</artifactId>
            <version>2.9</version>
        </dependency>
        <!-- adorsys/xs2a-tpp-rest-server -->
        <dependency>
            <groupId>de.adorsys.psd2.sandbox</groupId>
            <artifactId>tpp-rest-server</artifactId>
            <version>2.9</version>
        </dependency>
        <!-- adorsys/xs2a-certificate-generator -->
        <dependency>
            <groupId>de.adorsys.psd2.sandbox</groupId>
            <artifactId>certificate-generator</artifactId>
            <version>2.9</version>
        </dependency>

        <!-- https://github.com/adorsys/ledgers -->
        <!-- adorsys/ledgers:2.0 -->
        <dependency>
            <groupId>de.adorsys.ledgers</groupId>
            <artifactId>ledgers-app</artifactId>
            <version>2.8</version>
        </dependency>
        <!-- END -->


        <!-- Test only dependencies -->
        <dependency>
            <groupId>io.rest-assured</groupId>
            <artifactId>rest-assured</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-remote-resources-plugin</artifactId>
                <version>${maven-remote-resources-plugin.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>bundle</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <includes>
                        <include>**/*.yml</include>
                        <include>**/*.sql</include>
                    </includes>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

