<?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>cloud.piranha.http</groupId>
        <artifactId>project</artifactId>
        <version>24.7.0</version>
    </parent>

    <artifactId>piranha-http-impl</artifactId>
    <packaging>jar</packaging>

    <name>Piranha - HTTP - Implementation</name>

    <dependencies>
        <!-- compile -->
        <dependency>
            <groupId>cloud.piranha.http</groupId>
            <artifactId>piranha-http-api</artifactId>
            <version>${project.version}</version>
            <scope>compile</scope>
        </dependency>
        <!-- test -->
        <dependency>
            <groupId>cloud.piranha.http</groupId>
            <artifactId>piranha-http-tests</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <compilerArgs>
                        <arg>--add-modules=java.net.http</arg>
                    </compilerArgs>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>--add-opens cloud.piranha.http.impl/cloud.piranha.http.impl=ALL-UNNAMED</argLine>
                    <argLine>--add-reads cloud.piranha.http.impl=java.net.http</argLine>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
