<?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/maven-v4_0_0.xsd">
    <parent>
        <groupId>org.atmosphere</groupId>
        <artifactId>atmosphere-project</artifactId>
        <version>4.0.44</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

    <modelVersion>4.0.0</modelVersion>
    <artifactId>atmosphere-checkpoint</artifactId>
    <packaging>jar</packaging>
    <name>atmosphere-checkpoint</name>
    <description>Durable execution for Atmosphere agents — CheckpointStore SPI, WorkflowSnapshot, fork/resume semantics, and an opt-in bridge to CoordinationJournal</description>
    <url>https://github.com/Atmosphere/atmosphere</url>

    <properties>
        <atmosphere.module.name>org.atmosphere.checkpoint</atmosphere.module.name>
    </properties>

    <dependencies>
        <!-- atmosphere-ai is the SPI home for AgentRuntime / AgentSnapshot /
             AgentExecutionContext, which the AgentPassivation helper
             reads from and writes back to. Optional so apps that use the
             core CheckpointStore for non-AI workflows don't pull
             modules/ai transitively. Callers that use AgentPassivation
             already depend on modules/ai. -->
        <dependency>
            <groupId>org.atmosphere</groupId>
            <artifactId>atmosphere-ai</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- Optional: users who bring coordinator on the classpath can use
             the CheckpointingCoordinationJournal decorator bridge. The core
             SPI has no dependency on the coordinator. -->
        <dependency>
            <groupId>org.atmosphere</groupId>
            <artifactId>atmosphere-coordinator</artifactId>
            <optional>true</optional>
        </dependency>

        <!-- Optional: SQLite-backed persistent checkpoint store -->
        <dependency>
            <groupId>org.xerial</groupId>
            <artifactId>sqlite-jdbc</artifactId>
            <version>3.49.1.0</version>
            <optional>true</optional>
        </dependency>

        <dependency>
            <groupId>tools.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${jackson.version}</version>
            <optional>true</optional>
        </dependency>

        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${slf4j-version}</version>
        </dependency>

        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>${logback-version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
