Permalink
Switch branches/tags
Nothing to show
Find file
e02cbd6 Jun 9, 2013
44 lines (37 sloc) 1.75 KB
import AssemblyKeys._
assemblySettings
scalaVersion := "2.9.3"
name := "fastdataprocessingwithspark-sharkexamples"
libraryDependencies ++= Seq(
"edu.berkeley.cs.amplab" % "shark_2.9.3" % "0.7.0"
)
// This is based on Shark's project build file. If the build stops working on
// upgrading Shark versions this logic may also need to be updated.
unmanagedJars in Compile <++= baseDirectory map { base =>
val hiveFile = file(System.getenv("HIVE_HOME")) / "lib"
val baseDirectories = (base / "lib") +++ (hiveFile)
val customJars = (baseDirectories ** "*.jar")
// Hive uses an old version of guava that doesn't have what we want.
customJars.classpath.filter(!_.toString.contains("guava"))
}
resolvers ++= Seq(
"JBoss Repository" at "http://repository.jboss.org/nexus/content/repositories/releases/",
"Spray Repository" at "http://repo.spray.cc/",
"Cloudera Repository" at "https://repository.cloudera.com/artifactory/cloudera-repos/",
"Akka Repository" at "http://repo.akka.io/releases/",
"Twitter4J Repository" at "http://twitter4j.org/maven2/",
"Apache HBase" at "https://repository.apache.org/content/repositories/releases",
"SnowPlow Repo" at "http://maven.snplow.com/releases/",
"Twitter Maven Repo" at "http://maven.twttr.com/"
)
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList("org", "apache", xs @ _*) => MergeStrategy.first
case PathList("org", "jboss", xs @ _*) => MergeStrategy.first
case "about.html" => MergeStrategy.rename
case "reference.conf" => MergeStrategy.concat
case _ => MergeStrategy.first
}
}