forked from qadahtm/SpatialSparkApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (44 loc) · 1.84 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
import AssemblyKeys._
name := "SpatialSparkApp"
version := "0.1"
scalaVersion := "2.10.2"
resolvers ++= Seq(
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/releases/",
"Secured Central Repository" at "https://repo1.maven.org/maven2"
)
//externalResolvers := Resolver.withDefaultResolvers(resolvers.value, mavenCentral = false)
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "1.0.2" % "provided",
"org.apache.spark" %% "spark-streaming-kafka" % "1.0.2" % "provided",
"org.apache.spark" %% "spark-streaming-twitter" % "1.0.2" % "provided",
//"org.apache.spark" %% "spark-catalyst" % "1.0.2" % "provided",
//"org.apache.spark" %% "spark-streaming" % "1.0.2" % "provided",
//"org.apache.spark" %% "spark-mllib" % "1.0.2" % "provided",
//"org.apache.spark" %% "spark-sql" % "1.0.2" % "provided",
"org.apache.spark" %% "spark-graphx" % "1.0.2" % "provided"
)
assemblySettings
Seq(
mergeStrategy in assembly <<= (mergeStrategy in assembly) { (old) =>
{
case PathList("slf4j", "api", xs @ _*) => MergeStrategy.first
case PathList("javax", "servlet", xs @ _*) => MergeStrategy.first
case PathList("javax", "transaction", xs @ _*) => MergeStrategy.first
case PathList("javax", "mail", xs @ _*) => MergeStrategy.first
case PathList("javax", "activation", xs @ _*) => MergeStrategy.first
case PathList(ps @ _*) if ps.last endsWith ".html" => MergeStrategy.first
case "application.conf" => MergeStrategy.concat
case "unwanted.txt" => MergeStrategy.discard
case x => old(x)
}
})
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-Xlint",
"-Ywarn-dead-code",
"-language:_",
"-target:jvm-1.7",
"-encoding", "UTF-8"
)
testOptions += Tests.Argument(TestFrameworks.JUnit, "-v")