prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
132 stars 38 forks source link

How to exclude cucumber.java8 dependency? #99

Closed HesterLyons closed 5 years ago

HesterLyons commented 5 years ago

Hi, I'm using this repository and it is excellent, thank you. I have a simple issue - in our setup, we are using the 'old style' step definitions, not lambda expressions. However, because Courgette is prepackaged with the cucumber.java8 dependency, every time we re-import the Gradle project that dependency is added and Cucumber begins to generate lambda snippets. While it is easy to manually remove the dependency I am wondering if there is some way for me to exclude it from Courgette, either by building a local .jar file with the dependency removed, or by some other way? I guess I could create my own branch but then we wouldn't be getting the updates, so I'd like to avoid that?

prashant-ramcharan commented 5 years ago

Put this in your build.gradle

    testCompile('io.github.prashant-ramcharan:courgette-jvm:3.1.0') {
        exclude group: 'io.cucumber', module: 'cucumber-java8'
    }
HesterLyons commented 5 years ago

Thank you so much, that did the trick.