<?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>

    <groupId>io.github.markpollack</groupId>
    <artifactId>agentworks-bom</artifactId>
    <version>1.8.0</version>
    <packaging>pom</packaging>

    <name>AgentWorks BOM</name>
    <description>Bill of Materials for the Agent Suite</description>
    <url>https://github.com/markpollack/agentworks</url>

    <organization>
        <name>Mark Pollack</name>
        <url>https://github.com/markpollack</url>
    </organization>

    <licenses>
        <license>
            <name>Business Source License 1.1</name>
            <url>https://github.com/markpollack/agentworks/blob/main/LICENSE</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <id>markpollack</id>
            <name>Mark Pollack</name>
            <email>markpollack@users.noreply.github.com</email>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/markpollack/agentworks.git</connection>
        <developerConnection>scm:git:ssh://git@github.com/markpollack/agentworks.git</developerConnection>
        <url>https://github.com/markpollack/agentworks</url>
    </scm>

    <issueManagement>
        <system>GitHub</system>
        <url>https://github.com/markpollack/agentworks/issues</url>
    </issueManagement>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>17</maven.compiler.source>
        <maven.compiler.target>17</maven.compiler.target>

        <!-- Jackson 2 — aligned with Spring Boot 3.5.x (jackson-bom) and
             Boot 4.0.x (jackson-2-bom), and with every member project's pin.
             Members align at source; this import protects consumers from
             third-party transitive strays (e.g. networknt's dataformat-yaml). -->
        <jackson.version>2.21.2</jackson.version>

        <!-- Test infrastructure versions -->
        <mockito.version>5.11.0</mockito.version>
        <byte-buddy.version>1.14.12</byte-buddy.version>
        <assertj.version>3.26.3</assertj.version>
        <junit-jupiter.version>5.10.3</junit-jupiter.version>
    </properties>

    <dependencyManagement>
        <dependencies>
            <!-- Jackson BOM — single converged Jackson 2 version for consumers -->
            <dependency>
                <groupId>com.fasterxml.jackson</groupId>
                <artifactId>jackson-bom</artifactId>
                <version>${jackson.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- Test Infrastructure — aligned Mockito + Byte Buddy -->
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-bom</artifactId>
                <version>${mockito.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy</artifactId>
                <version>${byte-buddy.version}</version>
            </dependency>
            <dependency>
                <groupId>net.bytebuddy</groupId>
                <artifactId>byte-buddy-agent</artifactId>
                <version>${byte-buddy.version}</version>
            </dependency>
            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>${assertj.version}</version>
            </dependency>
            <dependency>
                <groupId>org.junit</groupId>
                <artifactId>junit-bom</artifactId>
                <version>${junit-jupiter.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>

            <!-- Mark Pollack - Agent Suite -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-hooks-core</artifactId>
                <version>0.6.3</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-hooks-spring</artifactId>
                <version>0.6.3</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-hooks-claude</artifactId>
                <version>0.6.3</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-hooks-gemini</artifactId>
                <version>0.6.3</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>journal-core</artifactId>
                <version>1.4.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>claude-code-capture</artifactId>
                <version>1.4.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-api</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-core</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-tools</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-flows</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-agents</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-batch</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-temporal</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>workflow-journal</artifactId>
                <version>0.9.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>experiment-core</artifactId>
                <version>0.5.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>experiment-claude</artifactId>
                <version>0.5.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>loopy</artifactId>
                <version>0.4.0</version>
            </dependency>

            <!-- Agent Memory -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>memory-core</artifactId>
                <version>0.2.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>memory-advisor</artifactId>
                <version>0.2.0</version>
            </dependency>

            <!-- Agent Client Protocol (ACP) -->
            <dependency>
                <groupId>com.agentclientprotocol</groupId>
                <artifactId>acp-annotations</artifactId>
                <version>0.14.0</version>
            </dependency>
            <dependency>
                <groupId>com.agentclientprotocol</groupId>
                <artifactId>acp-core</artifactId>
                <version>0.14.0</version>
            </dependency>
            <dependency>
                <groupId>com.agentclientprotocol</groupId>
                <artifactId>acp-agent-support</artifactId>
                <version>0.14.0</version>
            </dependency>
            <dependency>
                <groupId>com.agentclientprotocol</groupId>
                <artifactId>acp-test</artifactId>
                <version>0.14.0</version>
            </dependency>
            <dependency>
                <groupId>com.agentclientprotocol</groupId>
                <artifactId>acp-websocket-jetty</artifactId>
                <version>0.14.0</version>
            </dependency>

            <!-- Claude Agent SDK -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>claude-code-sdk</artifactId>
                <version>1.3.0</version>
            </dependency>

            <!-- Agent Bench -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-bench-core</artifactId>
                <version>0.4.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-bench-agents</artifactId>
                <version>0.4.0</version>
            </dependency>

            <!-- Agent Judge -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-judge-core</artifactId>
                <version>0.12.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-judge-llm</artifactId>
                <version>0.12.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-judge-exec</artifactId>
                <version>0.12.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-judge-file</artifactId>
                <version>0.12.0</version>
            </dependency>

            <!-- Agent Sandbox -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-sandbox-core</artifactId>
                <version>0.9.3</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-sandbox-docker</artifactId>
                <version>0.9.3</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-sandbox-e2b</artifactId>
                <version>0.9.3</version>
            </dependency>

            <!-- Agent Client -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-client-core</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-model</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-claude</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-gemini</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-launcher</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-qwen-code</artifactId>
                <version>0.21.0</version>
            </dependency>

            <!-- Agent Client Starters -->
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-starter-claude</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-starter-gemini</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-starter-amp</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-starter-codex</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-starter-amazon-q</artifactId>
                <version>0.21.0</version>
            </dependency>
            <dependency>
                <groupId>io.github.markpollack</groupId>
                <artifactId>agent-starter-qwen-code</artifactId>
                <version>0.21.0</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.13.0</version>
                <configuration>
                    <release>17</release>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.sonatype.central</groupId>
                        <artifactId>central-publishing-maven-plugin</artifactId>
                        <version>0.10.0</version>
                        <extensions>true</extensions>
                        <configuration>
                            <publishingServerId>central</publishingServerId>
                            <autoPublish>true</autoPublish>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>3.2.4</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                                <configuration>
                                    <gpgArguments>
                                        <arg>--pinentry-mode</arg>
                                        <arg>loopback</arg>
                                    </gpgArguments>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.3.0</version>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>3.6.3</version>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
