-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
executable file
·48 lines (40 loc) · 1.46 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
name := "QuintorSparkOutlier"
version := "1.0"
scalaVersion := "2.10.5"
libraryDependencies ++= Seq(
"org.apache.spark" % "spark-core_2.10" % "1.4.1" % "provided",
"org.apache.spark" % "spark-mllib_2.10" % "1.4.1",
"org.apache.spark" % "spark-streaming-kafka_2.10" % "1.4.1",
"org.scala-lang.modules" %% "scala-pickling" % "0.10.1",
"org.apache.kafka" % "kafka_2.10" % "0.8.2.1",
"org.scalatest" % "scalatest_2.10" % "2.2.4" % "test"
)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) =>
(xs map {_.toLowerCase}) match {
case ("manifest.mf" :: Nil) | ("index.list" :: Nil) | ("dependencies" :: Nil) =>
MergeStrategy.discard
case ps @ (x :: xs) if ps.last.endsWith(".sf") || ps.last.endsWith(".dsa") =>
MergeStrategy.discard
case "plexus" :: xs =>
MergeStrategy.discard
case "pom.xml" :: xs =>
MergeStrategy.discard
case "license" :: xs =>
MergeStrategy.discard
case "license.txt" :: xs =>
MergeStrategy.discard
case "notice" :: xs =>
MergeStrategy.discard
case "notice.txt" :: xs =>
MergeStrategy.discard
case "pom.properties" :: xs =>
MergeStrategy.discard
case "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.discard
}
case _ => MergeStrategy.first
}