-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.sbt
34 lines (28 loc) · 1.08 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
name := "PNDA KSO sample app"
version := "1.0.2"
scalaVersion := "2.10.5"
enablePlugins(UniversalPlugin)
packageZipTarball in Universal := {
val originalFileName = (packageZipTarball in Universal).value
val (base, ext) = originalFileName.baseAndExt
val newFileName = file(originalFileName.getParent) / (base + ".tar.gz")
IO.move(originalFileName, newFileName)
newFileName
}
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "1.6.0" % "provided",
"org.apache.spark" %% "spark-streaming" % "1.6.0" % "provided",
"org.apache.spark" %% "spark-streaming-kafka" % "1.6.0",
"org.apache.kafka" %% "kafka" % "0.8.2.2",
"org.apache.avro" % "avro" % "1.7.7",
"org.codehaus.jackson" % "jackson-mapper-asl" % "1.9.13",
"joda-time" % "joda-time" % "2.7",
"log4j" % "log4j" % "1.2.14",
"org.apache.httpcomponents" % "httpcore" % "4.2.5" % "provided",
"org.apache.httpcomponents" % "httpclient" % "4.2.5" % "provided"
)
commands += Command.command("packageApp") { state =>
"assembly" ::
"universal:packageZipTarball" ::
state
}