<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>
        <artifactId>quarkus-tck-parent</artifactId>
        <groupId>io.quarkus</groupId>
        <version>1.2.1.Final</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>quarkus-tck-microprofile-config</artifactId>
    <name>Quarkus - TCK - MicroProfile Config</name>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <!-- These env variables are required for org.eclipse.microprofile.config.tck.CDIPropertyNameMatchingTest -->
                    <environmentVariables>
                        <my_int_property>45</my_int_property>
                        <MY_BOOLEAN_PROPERTY>true</MY_BOOLEAN_PROPERTY>
                        <my_string_property>haha</my_string_property>
                        <MY_STRING_PROPERTY>woohoo</MY_STRING_PROPERTY>
                    </environmentVariables>
                    <systemPropertyVariables>
                        <!-- Disable quarkus optimization -->
                        <quarkus.arc.remove-unused-beans>false</quarkus.arc.remove-unused-beans>
                    </systemPropertyVariables>
                    <!-- This workaround allows us to run a single test using 
                        the "test" system property -->
                    <!-- https://issues.apache.org/jira/browse/SUREFIRE-569 -->
                    <dependenciesToScan>
                        <dependency>org.eclipse.microprofile.config:microprofile-config-tck</dependency>
                    </dependenciesToScan>
                    <reuseForks>false</reuseForks>
                    <excludes>
                        <!-- TCK and spec dispute: https://github.com/eclipse/microprofile-config/pull/407 -->
                        <exclude>org.eclipse.microprofile.config.tck.EmptyValuesTest</exclude>
                        <!-- "testEnvironmentConfigSource" fails because of the above TCK/spec dispute -->
                        <!-- We have a custom version of this TCK class that excludes "testEnvironmentConfigSource", allowing other tests to run -->
                        <exclude>org.eclipse.microprofile.config.tck.ConfigProviderTest</exclude>
                    </excludes>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>io.quarkus</groupId>
            <artifactId>quarkus-arquillian</artifactId>
        </dependency>
        <dependency>
            <groupId>org.eclipse.microprofile.config</groupId>
            <artifactId>microprofile-config-tck</artifactId>
            <version>${microprofile-config-api.version}</version>
        </dependency>
    </dependencies>

</project>
