aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorJosh Rosen <joshrosen@databricks.com>2015-06-27 23:27:52 -0700
committerJosh Rosen <joshrosen@databricks.com>2015-06-27 23:27:52 -0700
commitf51004519c4c4915711fb9992e3aa4f05fd143ec (patch)
treebc9cee6336e3b4217a68dffab2d952847f43610b /pom.xml
parent42db3a1c2fb6db61e01756be7fe88c4110ae638e (diff)
downloadspark-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 'pom.xml')
-rw-r--r--pom.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 80cacb5ace..1aa7024088 100644
--- a/pom.xml
+++ b/pom.xml
@@ -681,7 +681,7 @@
</dependency>
<dependency>
<groupId>org.mockito</groupId>
- <artifactId>mockito-all</artifactId>
+ <artifactId>mockito-core</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>