forked from spirom/LearningSpark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
31 lines (17 loc) · 877 Bytes
/
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
name := "SparkExamples"
version := "1.0"
fork := true
// only relevant for Java sources --
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
scalaVersion := "2.11.8"
scalacOptions ++= Seq("-unchecked", "-deprecation")
libraryDependencies += "org.apache.spark" %% "spark-core" % "2.2.0"
libraryDependencies += "org.apache.spark" %% "spark-streaming" % "2.2.0"
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.2.0"
libraryDependencies += "org.apache.spark" %% "spark-hive" % "2.2.0"
libraryDependencies += "org.apache.spark" %% "spark-graphx" % "2.2.0"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.2.1" % "test"
// needed to make the hiveql examples run at least on Linux
javaOptions in run += "-XX:MaxPermSize=128M"
scalacOptions += "-target:jvm-1.8"
// note: tested directly using sbt with -java-home pointing to a JDK 1.8