forked from thunderain-project/thunderain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
71 lines (50 loc) · 2.37 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import AssemblyKeys._
//logLevel in Global := Level.Debug
name := "thunderain"
version := "0.1.0"
scalaVersion := "2.10.3"
retrieveManaged := true
assemblySettings
unmanagedJars in Compile <++= baseDirectory map { base =>
val hiveFile = file(System.getProperty("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" % "0.9.0-incubating-SNAPSHOT" excludeAll( ExclusionRule(organization = "asm"))
libraryDependencies +=
"org.apache.spark" %% "spark-streaming" % "0.9.0-incubating-SNAPSHOT" excludeAll( ExclusionRule(organization = "asm"), ExclusionRule(name = "slf4j-simple"))
libraryDependencies +=
"org.apache.spark" %% "spark-streaming-kafka" % "0.9.0-incubating-SNAPSHOT" 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-SNAPSHOT"
// for test only
libraryDependencies += "org.tachyonproject" % "tachyon-tests" % "0.4.0-SNAPSHOT"
// for test only and must use 1.9.1 to compitable with spark's scalatest
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
libraryDependencies += "org.mongodb" %% "casbah" % "2.6.3"
resolvers ++= Seq(
"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/",
"MongoDB Repository" at "http://repo.gradle.org/gradle/repo"
)
mergeStrategy in assembly <<= (mergeStrategy in assembly) { mergeStrategy => {
case entry => {
val strategy = mergeStrategy(entry)
if (strategy == MergeStrategy.deduplicate) MergeStrategy.first
else strategy
}
}
}
excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
cp filter {x => (x.data.getName.contains("spark-core")
|| x.data.getName.contains("spark-streaming")
|| x.data.getName.contains("shark")
|| x.data.getName.contains("tachyon")
|| x.data.getName.contains("slf4j"))}
}