Skip to content

Commit

Permalink
Turns out that we do need transitive deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Mar 11, 2016
1 parent 97b5d78 commit f9e2b42
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions project/SparkBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,19 @@ object OldDeps {

lazy val project = Project("oldDeps", file("dev"), settings = oldDepsSettings)

def versionArtifact(id: String): Option[sbt.ModuleID] = {
val fullId = id + "_2.11"
Some("org.apache.spark" % fullId % "1.2.0")
}

def oldDepsSettings() = Defaults.coreDefaultSettings ++ Seq(
name := "old-deps",
scalaVersion := "2.10.5",
libraryDependencies := Seq("spark-streaming-mqtt", "spark-streaming-zeromq",
"spark-streaming-flume", "spark-streaming-twitter",
"spark-streaming", "spark-mllib", "spark-graphx",
"spark-core").map(versionArtifact(_).get intransitive())
libraryDependencies := Seq(
"spark-streaming-mqtt",
"spark-streaming-zeromq",
"spark-streaming-flume",
"spark-streaming-twitter",
"spark-streaming",
"spark-mllib",
"spark-graphx",
"spark-core"
).map(id => "org.apache.spark" % (id + "_2.11") % "1.2.0")
)
}

Expand Down

0 comments on commit f9e2b42

Please sign in to comment.