aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorMichael Armbrust <michael@databricks.com>2014-05-31 12:24:35 -0700
committerAaron Davidson <aaron@databricks.com>2014-05-31 12:24:35 -0700
commit7463cd248f81975bce9ff864002932864bd5b649 (patch)
treebdf36557024c21349f438c896bb57dc649d3cc40 /project
parent3ce81494c512bc97979a743ea77ef913315f7fb6 (diff)
downloadspark-7463cd248f81975bce9ff864002932864bd5b649.tar.gz
spark-7463cd248f81975bce9ff864002932864bd5b649.tar.bz2
spark-7463cd248f81975bce9ff864002932864bd5b649.zip
Optionally include Hive as a dependency of the REPL.
Due to the way spark-shell launches from an assembly jar, I don't think this change will affect anyone who isn't trying to launch the shell directly from sbt. That said, it is kinda nice to be able to launch all things directly from SBT when developing. Author: Michael Armbrust <michael@databricks.com> Closes #801 from marmbrus/hiveRepl and squashes the following commits: 9570571 [Michael Armbrust] Optionally include Hive as a dependency of the REPL.
Diffstat (limited to 'project')
-rw-r--r--project/SparkBuild.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala
index 9833411c90..64c9441d8e 100644
--- a/project/SparkBuild.scala
+++ b/project/SparkBuild.scala
@@ -59,8 +59,10 @@ object SparkBuild extends Build {
lazy val core = Project("core", file("core"), settings = coreSettings)
+ def replDependencies = Seq[ProjectReference](core, graphx, bagel, mllib, sql) ++ maybeHiveRef
+
lazy val repl = Project("repl", file("repl"), settings = replSettings)
- .dependsOn(core, graphx, bagel, mllib, sql)
+ .dependsOn(replDependencies.map(a => a: sbt.ClasspathDep[sbt.ProjectReference]): _*)
lazy val tools = Project("tools", file("tools"), settings = toolsSettings) dependsOn(core) dependsOn(streaming)