<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright © 2015 The Gravitee team (http://gravitee.io)

    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>io.gravitee.gamma</groupId>
        <artifactId>gravitee-gamma</artifactId>
        <version>4.12.6</version>
    </parent>

    <artifactId>gravitee-gamma-rest-api</artifactId>
    <name>Gravitee.io Gamma - Rest API</name>

    <properties>
    </properties>

    <dependencies>
        <dependency>
            <groupId>io.gravitee.gamma.plugin.module</groupId>
            <artifactId>gravitee-gamma-plugin-module-handler</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <!-- compile scope so plugins resolve AuthzPolicy/AuthzEntity via parent classloader -->
        <dependency>
            <groupId>io.gravitee.gamma.definition</groupId>
            <artifactId>gravitee-gamma-definition-model</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>io.gravitee.apim.rest.api.management</groupId>
            <artifactId>gravitee-apim-rest-api-management-rest</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <!-- TracingRepository / OtelLogRepository SPIs (OTEL_TRACES / OTEL_LOGS scopes) — backing
                 store for the global trace explorer. Beans wired by the repository plugin handler in
                 the parent rest-api context — provided scope. -->
            <groupId>io.gravitee.apim.repository</groupId>
            <artifactId>gravitee-apim-repository-api</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <!-- RxJava3 — the TracingRepository / OtelLogRepository SPIs expose Single / Maybe. -->
            <groupId>io.reactivex.rxjava3</groupId>
            <artifactId>rxjava</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <!-- For GraviteeContext.getExecutionContext() to source the current org / env. -->
            <groupId>io.gravitee.apim.rest.api</groupId>
            <artifactId>gravitee-apim-rest-api-service</artifactId>
            <version>${project.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <!-- Lombok @RequiredArgsConstructor / @AllArgsConstructor on adapters and use cases. -->
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <!-- Spring @Configuration / @Bean for the tracing wiring. -->
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.containers</groupId>
            <artifactId>jersey-container-servlet</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.servlet</groupId>
            <artifactId>jakarta.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Test dependencies -->
        <dependency>
            <groupId>io.gravitee.apim.rest.api</groupId>
            <artifactId>gravitee-apim-rest-api-service</artifactId>
            <version>${project.version}</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.glassfish.jersey.test-framework.providers</groupId>
            <artifactId>jersey-test-framework-provider-jetty</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>jul-to-slf4j</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <!-- Architecture tests — enforce Hexagonal layout + naming + dependency direction. -->
            <groupId>com.tngtech.archunit</groupId>
            <artifactId>archunit-junit5</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
        </plugins>
    </build>
</project>
