-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Decouple JUnit from Hamcrest #1145
Comments
Use hamcrest-junit 2.0.0.0 instead Fixes junit-team#1145
Use hamcrest-junit 2.0.0.0 instead Fixes junit-team#1145
Sounds like a good plan. Let's deprecate the APIs that use Matcher on the main branch |
What about to declare optional dependency of Hamcrest in POM:4.13? This means our POM would specify optional dependency: |
Will this also resolve the warning that com.netflix.nebula.lint produces:
|
@drjasonharrison I don't think that should happen with JUnit 4.12 (it doesn't ship with Hamcrest classes). Is it possible you depend on multiple versions of JUnit? In any case, I suggest trying to create a minimal reproducible test case and ask on stackoverflow.com |
@npryce has nicely summed up the reasons to do this in his blog:
http://www.natpryce.com/articles/000806.html
The text was updated successfully, but these errors were encountered: