<?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>dev.tnsai</groupId>
        <artifactId>tnsai-parent</artifactId>
        <version>0.18.7</version>
        <relativePath>../pom.xml</relativePath>
    </parent>

    <artifactId>tnsai-evaluation</artifactId>
    <packaging>jar</packaging>

    <name>TnsAI Evaluation</name>
    <description>Evaluation framework — G-Eval, quality metrics, release gates, regression detection.</description>

    <dependencies>
        <dependency>
            <groupId>dev.tnsai</groupId>
            <artifactId>tnsai-core</artifactId>
        </dependency>
        <dependency>
            <groupId>dev.tnsai</groupId>
            <artifactId>tnsai-quality</artifactId>
        </dependency>

        <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.datatype</groupId>
            <artifactId>jackson-datatype-jsr310</artifactId>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
        </dependency>
        <!-- Test-only logging binding so the evaluation module's own JUnit JVM
             has a provider; MUST stay test-scoped or it leaks into consumers'
             classpath and races their logback binding (see issue #240). -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>${slf4j.version}</version>
            <scope>test</scope>
        </dependency>

        <!-- JUnit is a compile-scope dep here because EvalExtension/EvalTest are public APIs -->
        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter-api</artifactId>
        </dependency>

        <dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <properties>
        <embedding.bench.property>false</embedding.bench.property>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <systemPropertyVariables>
                        <embedding.bench>${embedding.bench.property}</embedding.bench>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <!--
      Opt-in measured comparison (TAN-2998). Default verify stays network-free.
      The live IT is gated by @EnabledIfSystemProperty(embedding.bench=true).
      mvn -pl tnsai-evaluation -Pembedding-bench test
    -->
    <profiles>
        <profile>
            <id>embedding-bench</id>
            <properties>
                <embedding.bench.property>true</embedding.bench.property>
            </properties>
        </profile>
    </profiles>
</project>
