diff options
author | Josh Rosen <joshrosen@databricks.com> | 2015-06-27 23:27:52 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2015-06-27 23:27:52 -0700 |
commit | f51004519c4c4915711fb9992e3aa4f05fd143ec (patch) | |
tree | bc9cee6336e3b4217a68dffab2d952847f43610b /launcher | |
parent | 42db3a1c2fb6db61e01756be7fe88c4110ae638e (diff) | |
download | spark-f51004519c4c4915711fb9992e3aa4f05fd143ec.tar.gz spark-f51004519c4c4915711fb9992e3aa4f05fd143ec.tar.bz2 spark-f51004519c4c4915711fb9992e3aa4f05fd143ec.zip |
[SPARK-8683] [BUILD] Depend on mockito-core instead of mockito-all
Spark's tests currently depend on `mockito-all`, which bundles Hamcrest and Objenesis classes. Instead, it should depend on `mockito-core`, which declares those libraries as Maven dependencies. This is necessary in order to fix a dependency conflict that leads to a NoSuchMethodError when using certain Hamcrest matchers.
See https://github.com/mockito/mockito/wiki/Declaring-mockito-dependency for more details.
Author: Josh Rosen <joshrosen@databricks.com>
Closes #7061 from JoshRosen/mockito-core-instead-of-all and squashes the following commits:
70eccbe [Josh Rosen] Depend on mockito-core instead of mockito-all.
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/pom.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/pom.xml b/launcher/pom.xml index 48dd0d5f91..a853e67f5c 100644 --- a/launcher/pom.xml +++ b/launcher/pom.xml @@ -49,7 +49,7 @@ </dependency> <dependency> <groupId>org.mockito</groupId> - <artifactId>mockito-all</artifactId> + <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> |