Skip to content

Latest commit

 

History

History

cucumber-bom

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Bill of Materials

It is fairly common for one project to use more than one Cucumber dependency. To keep these versions in sync, a Bill of Materials can be used.

Usage

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.cucumber</groupId>
            <artifactId>cucumber-bom</artifactId>
            <version>${cucumber.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<!--Then for example-->

<dependencies>
    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-java</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>io.cucumber</groupId>
        <artifactId>cucumber-junit</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>