<?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>ink.icoding</groupId>
        <artifactId>marginalia</artifactId>
        <version>1.1.0</version><!-- version -->
    </parent>

    <artifactId>marginalia-spring-boot-starter</artifactId>
    <name>Marginalia Spring Boot Starter</name>
    <description>Spring Boot auto-configuration for Marginalia API documentation</description>

    <dependencies>
        <!-- Core: the only real transitive dependency users will get -->
        <dependency>
            <groupId>ink.icoding</groupId>
            <artifactId>marginalia-core</artifactId>
        </dependency>

        <!-- Spring: provided — user brings their own via spring-boot-starter-web -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-autoconfigure</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-web</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-webmvc</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>jakarta.servlet</groupId>
            <artifactId>jakarta.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Jackson: provided — already in core as compile dep, re-declared here
             to pin it as provided so it doesn't duplicate what the user brings -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <scope>provided</scope>
        </dependency>

        <!-- Configuration processor: compile-only, generates metadata jar, not shipped -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-configuration-processor</artifactId>
            <optional>true</optional>
        </dependency>
    </dependencies>
</project>
