<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.netmoor.moorhaven</groupId>
        <artifactId>moorhaven-parent</artifactId>
        <version>0.3.3</version>
    </parent>

    <artifactId>moorhaven-cli</artifactId>
    <name>Moorhaven :: CLI</name>
    <description>Standalone bulk-import CLI: recursively uploads photos/videos over the HTTP API with
        SHA-256 dedup, resumable upload and album-from-folder — a thin client, no Spring.</description>

    <properties>
        <picocli.version>4.7.7</picocli.version>
        <cli.main.class>com.netmoor.moorhaven.cli.MoorhavenCli</cli.main.class>
        <!-- Coverage ratchet (#50): own-module line coverage at measurement time minus
             a 2pp safety margin, see doc/coverage-baseline.md. Ratchet-only: raise when
             coverage improves, never lower. -->
        <jacoco.min>0.18</jacoco.min>
    </properties>

    <dependencies>
        <!-- Command-line parsing (no transitive deps → dependency convergence stays trivial). -->
        <dependency>
            <groupId>info.picocli</groupId>
            <artifactId>picocli</artifactId>
            <version>${picocli.version}</version>
        </dependency>
        <!-- Jackson 3 (tools.jackson), version-managed by the Spring Boot BOM. -->
        <dependency>
            <groupId>tools.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <!-- HTTP is the JDK's java.net.http.HttpClient — no dependency. -->
    </dependencies>

    <build>
        <finalName>moorhaven-cli</finalName>
        <plugins>
            <!-- Executable jar (Spring Boot launcher used only as a self-contained packager;
                 the CLI itself pulls no Spring). Version managed by the parent. -->
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <mainClass>${cli.main.class}</mainClass>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>
