diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2015-11-05 18:05:58 -0800 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2015-11-05 18:05:58 -0800 |
commit | 5e31db70bb783656ba042863fcd3c223e17a8f81 (patch) | |
tree | 9c56db98f9b2d1cf677f80e097a0b8c7237318a4 | |
parent | 468ad0ae874d5cf55712ee976faf77f19c937ccb (diff) | |
download | spark-5e31db70bb783656ba042863fcd3c223e17a8f81.tar.gz spark-5e31db70bb783656ba042863fcd3c223e17a8f81.tar.bz2 spark-5e31db70bb783656ba042863fcd3c223e17a8f81.zip |
[SPARK-11538][BUILD] Force guava 14 in sbt build.
sbt's version resolution code always picks the most recent version, and we
don't want that for guava.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #9508 from vanzin/SPARK-11538.
-rw-r--r-- | project/SparkBuild.scala | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala index 75c36930de..b75ed13a78 100644 --- a/project/SparkBuild.scala +++ b/project/SparkBuild.scala @@ -207,7 +207,8 @@ object SparkBuild extends PomBuild { // Note ordering of these settings matter. /* Enable shared settings on all projects */ (allProjects ++ optionallyEnabledProjects ++ assemblyProjects ++ Seq(spark, tools)) - .foreach(enable(sharedSettings ++ ExcludedDependencies.settings ++ Revolver.settings)) + .foreach(enable(sharedSettings ++ DependencyOverrides.settings ++ + ExcludedDependencies.settings ++ Revolver.settings)) /* Enable tests settings for all projects except examples, assembly and tools */ (allProjects ++ optionallyEnabledProjects).foreach(enable(TestSettings.settings)) @@ -292,6 +293,14 @@ object Flume { } /** + * Overrides to work around sbt's dependency resolution being different from Maven's. + */ +object DependencyOverrides { + lazy val settings = Seq( + dependencyOverrides += "com.google.guava" % "guava" % "14.0.1") +} + +/** This excludes library dependencies in sbt, which are specified in maven but are not needed by sbt build. */ |