<?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">
    <parent>
        <groupId>org.mock-server</groupId>
        <artifactId>mockserver</artifactId>
        <version>9.4.0</version>
    </parent>

    <modelVersion>4.0.0</modelVersion>

    <artifactId>mockserver-testing</artifactId>
    <name>MockServer Testing</name>
    <description>A module used for common testing code of all MockServer modules</description>
    <url>https://www.mock-server.com</url>

    <properties>
        <module.name>org.mockserver.test</module.name>
    </properties>

    <dependencies>
        <!-- test -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest</artifactId>
            <scope>compile</scope>
        </dependency>
        <!-- Netty, provided: used only by the ByteBuf leak-detection helpers
             (FailOnLeakResourceLeakDetector). Every
             consuming module already brings Netty on its own test classpath, so this is
             marked provided to avoid imposing it transitively. -->
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-common</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>io.netty</groupId>
            <artifactId>netty-buffer</artifactId>
            <scope>provided</scope>
        </dependency>
        <!-- BouncyCastle, provided: used only by TestCertificates; every consuming module that
             uses it already has BouncyCastle through mockserver-core. -->
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcprov-jdk18on</artifactId>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.bouncycastle</groupId>
            <artifactId>bcpkix-jdk18on</artifactId>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <!-- FailOnLeakResourceLeakDetectorTest starts a child JVM with the leak detector
                         settings every gated module's forks get, to prove they still record a leak -->
                    <systemPropertyVariables>
                        <mockserver.nettyLeakDetectorArgLine>${mockserver.nettyLeakDetectorArgLine}</mockserver.nettyLeakDetectorArgLine>
                    </systemPropertyVariables>
                </configuration>
            </plugin>
        </plugins>
    </build>

</project>