I'm trying to use the Qulice code quality control tool.
When I run qulice:check
on my project, I get the following errors:
[WARNING] Found duplicate and different classes in [junit:junit:4.8.2,org.mockito:mockito-all:1.9.5] :
[WARNING] org.hamcrest.BaseDescription
[WARNING] org.hamcrest.BaseMatcher
[WARNING] org.hamcrest.CoreMatchers
[WARNING] org.hamcrest.Description
[WARNING] org.hamcrest.Factory
[WARNING] org.hamcrest.Matcher
[WARNING] org.hamcrest.SelfDescribing
[WARNING] org.hamcrest.StringDescription
[WARNING] org.hamcrest.core.AllOf
[WARNING] org.hamcrest.core.AnyOf
[WARNING] org.hamcrest.core.DescribedAs
[WARNING] org.hamcrest.core.Is
[WARNING] org.hamcrest.core.IsAnything
[WARNING] org.hamcrest.core.IsEqual
[WARNING] org.hamcrest.core.IsInstanceOf
[WARNING] org.hamcrest.core.IsNot
[WARNING] org.hamcrest.core.IsNull
[WARNING] org.hamcrest.core.IsSame
[WARNING] org.hamcrest.internal.ArrayIterator
[WARNING] org.hamcrest.internal.SelfDescribingValue
[WARNING] org.hamcrest.internal.SelfDescribingValueIterator
I tried to disable those checks, but according to Qulice GitHub, this feature isn't implemented yet.
What can I do in order to get rid of these errors?
org.hamcrest:hamcrest-core
is supposed to help when the warning states that the "duplicate" classes are in junit and mockito. – Nir Alfasiorg.hamcrest:hamcrest-core
. Noworg.hamcrest:hamcrest-core
is included twice (one time for JUnit, one - for Mockito). If I excludeorg.hamcrest:hamcrest-core
in the dependency of JUnit (but not in that of Mockito), it will be included only one and in theory prevent he warning. – Dmitrii Pisarenko