Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serenity 2.3.4 - 2.3.9 using older version of hamcrest - 1.3 #2332

Closed
mi-akram opened this issue Dec 7, 2020 · 2 comments
Closed

Serenity 2.3.4 - 2.3.9 using older version of hamcrest - 1.3 #2332

mi-akram opened this issue Dec 7, 2020 · 2 comments

Comments

@mi-akram
Copy link

mi-akram commented Dec 7, 2020

Hi I have just recently upgraded my project dependencies to use Serenity versions 2.3.4 however, my project still seems to be using older versions of hamcrest - 1.3.

I have built a dependency tree and see that the parents:
net.serenity-bdd:serenity-junit:2.3.4 - is using org.hamcrest:hamcrest-core:1.3
net.serenity-bdd:serenity-rest-assured:2.3.4 > io.rest-assured:rest-assured:3.3.0 is using org.hamcrest:hamcrest-core:1.3

However
net.serenity-bdd:serenity-cucumber6:2.3.4 - is using io.cucumber:datatable-matchers:3.4.0 > org.hamcrest:hamcrest:2.2

Is there any reason why Serenity versions 2.3.X are using older versions of hamcrest and are they any suggestions on how I can pulling using the latest version 2.2. I suspect there could some conflicts with both of them pulled together with the package names being the same.

As a result when I am trying to use the 'containsStringIgnoringCase' matcher, it is unable to resolve.

Versions of Serenity that I am using:

testCompile group: 'net.serenity-bdd', name: 'serenity-core', version: '2.3.4'
testCompile group: 'net.serenity-bdd', name: 'serenity-junit', version: '2.3.4'
testCompile group: 'net.serenity-bdd', name: 'serenity-rest-assured', version: '2.3.4'
testCompile group: 'net.serenity-bdd', name: 'serenity-cucumber6', version: '2.3.4'

Any help would be most appreciated.

@mi-akram
Copy link
Author

mi-akram commented Dec 7, 2020

projectDependencies.docx

@SiKing
Copy link
Contributor

SiKing commented Dec 16, 2020

Can you just specify in your project (Maven, Gradle, ???) to use org.hamcrest:hamcrest:2.2?

@wakaleo wakaleo closed this as completed Feb 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants