<?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>xyz.derivora</groupId>
        <artifactId>derivora-properties</artifactId>
        <version>0.1.0</version>
    </parent>

    <artifactId>derivora-properties-support</artifactId>
    <version>0.1.0</version>
    <packaging>jar</packaging>

    <name>Derivora Properties Support</name>
    <description>
        A Java module that provides classes to simplify the implementation of Derivora Properties API interfaces.
    </description>
    <inceptionYear>2025</inceptionYear>
    <url>https://gitlab.com/derivora/derivora-properties/derivora-properties-support</url>

    <licenses>
        <license>
            <name>Apache License, Version 2.0</name>
            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <scm>
        <connection>scm:git:https://gitlab.com/derivora/derivora-properties/derivora-properties-support.git</connection>
        <developerConnection>
            scm:git:ssh://gitlab.com/derivora/derivora-properties/derivora-properties-support.git
        </developerConnection>
        <tag>v0.1.0</tag>
        <url>https://gitlab.com/derivora/derivora-properties/derivora-properties-support</url>
    </scm>

    <issueManagement>
        <system>GitLab</system>
        <url>https://gitlab.com/derivora/derivora-properties/derivora-properties-support/-/issues</url>
    </issueManagement>

    <properties>
        <derivora.properties.api.version>0.1.0</derivora.properties.api.version>
        <argLine/>
    </properties>

    <dependencies>
        <dependency>
            <groupId>xyz.derivora</groupId>
            <artifactId>derivora-properties-api</artifactId>
            <version>${derivora.properties.api.version}</version>
        </dependency>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-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>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-nop</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
            </resource>
            <resource>
                <directory>${project.basedir}</directory>
                <targetPath>META-INF</targetPath>
                <includes>
                    <include>LICENSE</include>
                    <include>NOTICE</include>
                </includes>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <goals>
                            <goal>properties</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>@{argLine} -javaagent:${org.mockito:mockito-core:jar}</argLine>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>