<?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>io.bitdive</groupId>
    <artifactId>bitdive-replay-parent</artifactId>
    <version>0.1.6</version>
  </parent>

  <groupId>io.bitdive</groupId>
  <artifactId>bitdive-replay-spring3</artifactId>
  <packaging>jar</packaging>

  <name>bitdive-replay-spring3</name>
  <licenses>
    <license>
      <name>BitDive.io Agent Proprietary License</name>
      <url>https://bitdive.io/docs/license</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <description>Replay harness for Spring Boot 3.x apps</description>

  <url>bitdive.io</url>
  <scm>
    <url>https://github.com/username/my-project</url>
    <connection>scm:git:git://github.com/username/my-project.git</connection>
    <developerConnection>scm:git:ssh://github.com/username/my-project.git</developerConnection>

  </scm>
  <developers>
    <developer>
      <name>FrolikovEA</name>
      <email>ef@bitdive.io</email>
    </developer>
  </developers>

  <properties>
    <!-- Spring Boot 3.3.x -->
    <spring.boot.version>3.3.5</spring.boot.version>
    <jackson.version>2.17.2</jackson.version>
    <jakarta.servlet.version>6.0.0</jakarta.servlet.version>
  </properties>

  <!-- Let Boot 3.3 manage Spring/Jackson/SLF4J/JUnit/etc versions -->
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-dependencies</artifactId>
        <version>${spring.boot.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <dependencies>
    <!-- Core module -->
    <dependency>
      <groupId>io.bitdive</groupId>
      <artifactId>bitdive-replay-core</artifactId>
      <version>${project.version}</version>
    </dependency>

    <!-- Required at runtime for user code that references org.json.simple.* (e.g. monitoring.AmisManager). -->
    <dependency>
      <groupId>com.googlecode.json-simple</groupId>
      <artifactId>json-simple</artifactId>
      <version>1.1.1</version>
    </dependency>

    <!-- Spring (provided by the test project using this library) -->
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot</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>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.springframework.data</groupId>
      <artifactId>spring-data-mongodb</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.mongodb</groupId>
      <artifactId>mongodb-driver-sync</artifactId>
      <scope>provided</scope>
    </dependency>

    <!-- jakarta.* servlet API (Boot 3.x) -->
    <dependency>
      <groupId>jakarta.servlet</groupId>
      <artifactId>jakarta.servlet-api</artifactId>
      <version>${jakarta.servlet.version}</version>
      <scope>provided</scope>
    </dependency>

    <!-- BitDive producer parent -->
    <dependency>
      <groupId>io.bitdive</groupId>
      <artifactId>java-producer-parent</artifactId>
      <version>${bitdive.producer.version}</version>
      <scope>provided</scope>
    </dependency>

    <!-- Jackson (versions managed by Boot BOM) -->
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.datatype</groupId>
      <artifactId>jackson-datatype-jsr310</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.datatype</groupId>
      <artifactId>jackson-datatype-jdk8</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.module</groupId>
      <artifactId>jackson-module-parameter-names</artifactId>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
      <version>${lombok.version}</version>
      <optional>true</optional>
    </dependency>

    <!-- JUnit/Mockito are expected to be present in the consumer test project -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-api</artifactId>
      <scope>provided</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-core</artifactId>
      <scope>provided</scope>
    </dependency>

    <!-- Spring Test for MockMvc and this module's tests (single declaration) -->
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
    </dependency>
    <!-- Override AssertJ from spring-boot-starter-test to unified version -->
    <dependency>
      <groupId>org.assertj</groupId>
      <artifactId>assertj-core</artifactId>
      <version>3.27.7</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
</project>

