<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>io.cucumber</groupId>
        <artifactId>cucumber-jvm</artifactId>
        <version>4.8.0</version>
    </parent>

    <artifactId>cucumber-core</artifactId>
    <packaging>jar</packaging>
    <name>Cucumber-JVM: Core</name>

    <properties>
        <project.Automatic-Module-Name>io.cucumber.core</project.Automatic-Module-Name>
        <!-- version 2.4.0 does not work on Java 7 -->
        <jsoup.version>1.12.1</jsoup.version>
        <xmlunit.version>1.6</xmlunit.version>
        <webbit.version>0.4.15</webbit.version>
        <webbit-rest.version>0.3.0</webbit-rest.version>
        <hamcrest-json.version>0.2</hamcrest-json.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>gherkin</artifactId>
        </dependency>
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>tag-expressions</artifactId>
        </dependency>
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-expressions</artifactId>
        </dependency>
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>datatable</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apiguardian</groupId>
            <artifactId>apiguardian-api</artifactId>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>xmlunit</groupId>
            <artifactId>xmlunit</artifactId>
            <version>${xmlunit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jsoup</groupId>
            <artifactId>jsoup</artifactId>
            <version>${jsoup.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.webbitserver</groupId>
            <artifactId>webbit</artifactId>
            <version>${webbit.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.webbitserver</groupId>
            <artifactId>webbit-rest</artifactId>
            <version>${webbit-rest.version}</version>
            <scope>test</scope>
        </dependency>



        <dependency>
            <groupId>uk.co.datumedge</groupId>
            <artifactId>hamcrest-json</artifactId>
            <version>${hamcrest-json.version}</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>

    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifest>
                            <mainClass>cucumber.api.cli.Main</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <argLine>-Duser.language=en</argLine>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.revapi</groupId>
                <artifactId>revapi-maven-plugin</artifactId>
                <configuration>
                    <analysisConfiguration>
                        <revapi.ignore>
                            <item>
                                <code>java.method.addedToInterface</code>
                                <new>method void cucumber.api.TypeRegistry::setDefaultParameterTransformer(io.cucumber.cucumberexpressions.ParameterByTypeTransformer)</new>
                                <package>cucumber.api</package>
                                <classQualifiedName>cucumber.api.TypeRegistry</classQualifiedName>
                                <classSimpleName>TypeRegistry</classSimpleName>
                                <methodName>setDefaultParameterTransformer</methodName>
                                <elementKind>method</elementKind>
                                <justification>This interface can be used by users of Cucumber but should not be implemented.</justification>
                            </item>
                            <item>
                                <code>java.method.numberOfParametersChanged</code>
                                <old>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.ArgumentMatcher::argumentsFrom(gherkin.pickles.PickleStep)</old>
                                <new>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.ArgumentMatcher::argumentsFrom(gherkin.pickles.PickleStep, java.lang.reflect.Type[])</new>
                                <package>io.cucumber.stepexpression</package>
                                <classQualifiedName>io.cucumber.stepexpression.ArgumentMatcher</classQualifiedName>
                                <classSimpleName>ArgumentMatcher</classSimpleName>
                                <methodName>argumentsFrom</methodName>
                                <elementKind>method</elementKind>
                                <justification>This class is part of Cucumbers internal API. The change adds a vararg argument. </justification>
                            </item>
                            <item>
                                <code>java.method.numberOfParametersChanged</code>
                                <old>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.ExpressionArgumentMatcher::argumentsFrom(gherkin.pickles.PickleStep)</old>
                                <new>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.ExpressionArgumentMatcher::argumentsFrom(gherkin.pickles.PickleStep, java.lang.reflect.Type[])</new>
                                <package>io.cucumber.stepexpression</package>
                                <classQualifiedName>io.cucumber.stepexpression.ExpressionArgumentMatcher</classQualifiedName>
                                <classSimpleName>ExpressionArgumentMatcher</classSimpleName>
                                <methodName>argumentsFrom</methodName>
                                <elementKind>method</elementKind>
                                <justification>This class is part of Cucumbers internal API.</justification>
                            </item>
                            <item>
                                <code>java.method.numberOfParametersChanged</code>
                                <old>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.StepExpression::match(java.lang.String)</old>
                                <new>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.StepExpression::match(java.lang.String, java.lang.reflect.Type[])</new>
                                <package>io.cucumber.stepexpression</package>
                                <classQualifiedName>io.cucumber.stepexpression.StepExpression</classQualifiedName>
                                <classSimpleName>StepExpression</classSimpleName>
                                <methodName>match</methodName>
                                <elementKind>method</elementKind>
                                <justification>This class is part of Cucumbers internal API. The change adds a vararg argument.</justification>
                            </item>
                            <item>
                                <code>java.method.numberOfParametersChanged</code>
                                <old>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.StepExpression::match(java.lang.String, java.lang.String)</old>
                                <new>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.StepExpression::match(java.lang.String, java.lang.String, java.lang.reflect.Type[])</new>
                                <package>io.cucumber.stepexpression</package>
                                <classQualifiedName>io.cucumber.stepexpression.StepExpression</classQualifiedName>
                                <classSimpleName>StepExpression</classSimpleName>
                                <methodName>match</methodName>
                                <elementKind>method</elementKind>
                                <justification>This class is part of Cucumbers internal API. The change adds a vararg argument.</justification>
                            </item>
                            <item>
                                <code>java.method.numberOfParametersChanged</code>
                                <old>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.StepExpression::match(java.lang.String, java.util.List&lt;java.util.List&lt;java.lang.String&gt;&gt;)</old>
                                <new>method java.util.List&lt;io.cucumber.stepexpression.Argument&gt; io.cucumber.stepexpression.StepExpression::match(java.lang.String, java.util.List&lt;java.util.List&lt;java.lang.String&gt;&gt;, java.lang.reflect.Type[])</new>
                                <package>io.cucumber.stepexpression</package>
                                <classQualifiedName>io.cucumber.stepexpression.StepExpression</classQualifiedName>
                                <classSimpleName>StepExpression</classSimpleName>
                                <methodName>match</methodName>
                                <elementKind>method</elementKind>
                                <justification>This class is part of Cucumbers internal API. The change adds a vararg argument.</justification>
                            </item>
                        </revapi.ignore>
                    </analysisConfiguration>
                </configuration>
            </plugin>

        </plugins>
    </build>
</project>
