-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.sbt
53 lines (39 loc) · 2.06 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import AssemblyKeys._
name := "thunderain"
version := "0.1.0"
scalaVersion := "2.10.3"
retrieveManaged := true
assemblySettings
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"))
}
libraryDependencies +=
"org.apache.spark" % "spark-core_2.10" % "0.9.0-incubating" excludeAll(ExclusionRule(organization = "asm"))
libraryDependencies +=
"org.apache.spark" % "spark-streaming_2.10" % "0.9.0-incubating" excludeAll(ExclusionRule(organization = "asm"),
ExclusionRule(name = "slf4j-simple"))
libraryDependencies +=
"org.apache.spark" % "spark-streaming-kafka_2.10" % "0.9.0-incubating" excludeAll( ExclusionRule(organization = "asm"), ExclusionRule(name = "slf4j-simple"))
libraryDependencies +=
"edu.berkeley.cs.amplab" %% "shark" % "0.9.0-SNAPSHOT" excludeAll(ExclusionRule(organization = "asm"))
libraryDependencies += "org.tachyonproject" % "tachyon" % "0.4.0"
resolvers ++= Seq(
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Sonatype Staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2/",
"Spring Plugin Release" at "http://repo.springsource.org/plugins-release/",
"Local Maven" at Path.userHome.asFile.toURI.toURL + ".m2/repository",
"Maven Repository" at "http://repo1.maven.org/maven2",
"Akka Repository" at "http://repo.akka.io/releases/",
"Spray Repository" at "http://repo.spray.cc/"
)
mergeStrategy in assembly := {
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard
case "META-INF/services/org.apache.hadoop.fs.FileSystem" => MergeStrategy.concat
case "reference.conf" => MergeStrategy.concat
case _ => MergeStrategy.first
}