-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
53 lines (48 loc) · 1.64 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 sbt._
import sbt.Keys._
lazy val commonSettings = Seq(
organization := "pl.example.spark",
name := "spark-streaming-broadcast-issue",
version := "0.0.1-SNAPSHOT",
scalacOptions in Compile ++= Seq(
"-encoding", "UTF-8",
"-target:jvm-1.7",
"-deprecation",
"-feature",
"-unchecked",
"-Xlog-reflective-calls",
"-Xlint"),
assemblyMergeStrategy in assembly := {
case PathList(xs@_*) if xs.last == "pom.xml" || xs.last == "pom.properties" =>
MergeStrategy.rename
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 "services" :: xs =>
MergeStrategy.filterDistinctLines
case ("spring.schemas" :: Nil) | ("spring.handlers" :: Nil) =>
MergeStrategy.filterDistinctLines
case _ => MergeStrategy.discard
}
case x => MergeStrategy.last
}
)
scalaVersion := "2.10.5"
lazy val root = (project in file("."))
.settings(commonSettings : _*)
resolvers +=
"Apache snapshots" at "http://repository.apache.org/snapshots/"
libraryDependencies ++= Seq(
"net.sf.supercsv" % "super-csv" % "2.2.0",
"org.scalatest" %% "scalatest" % "2.2.5" % "test",
"org.apache.spark" %% "spark-streaming" % "1.5.1" % "provided",
"org.apache.spark" %% "spark-core" % "1.5.1" % "provided",
"org.apache.spark" %% "spark-sql" % "1.5.1" % "provided"
)