Closed KLBonn closed 5 years ago
I am also facing the same issue. cucumber version mentioned in serenity-cucumber4 is 4.2.0. But, It is picking up the cucumber version mentioned in the serenity-core which is 2.4.0. Please take a look in to it. When I replcaed Serenity-cucumber jar with serenity-cucumber4, I am getting java.lang.NoClassDefFoundError: cucumber/runner/TimeServiceEventBus
The required dependency setup is explained in the documentation and on the README page: https://github.com/serenity-bdd/serenity-cucumber4/blob/master/README.md#adding-the-cucumber-4-dependency
Hi John,
I recently tried to include serenity-cucumber4 together with serenity-core and serenity-junit in my Maven project (to enable JIRA integration), and had some weird errors. So I included the maven-enforcer-plugin with dependencyConvergence rule, and received a number of findings.
Some seem to be less important, but serenity-screenplay and serenity-screenplay-webdriver both include cucumber-core v2.4, colliding with cucumber-core v4.2 actually targeted by this project. So maybe you can add an exclusion to these 2 Gradle dependencies?
Here the complete Maven enforcer output for reference: