-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.sbt
56 lines (45 loc) · 1.58 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
56
name := "spark_helper"
version := "2.0.4"
scalaVersion := "2.11.12"
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-Ywarn-unused-import",
"-Ywarn-unused"
)
assemblyJarName in assembly := name.value + "-" + version.value + ".jar"
assemblyOutputPath in assembly := file(
"./" + name.value + "-" + version.value + ".jar")
testOptions in Test += Tests.Argument("-oD")
parallelExecution in Test := false
wartremoverWarnings in (Compile, compile) ++= Warts.all
wartremoverWarnings in (Compile, compile) --= Seq(
Wart.DefaultArguments,
Wart.Nothing,
Wart.Equals,
Wart.NonUnitStatements,
Wart.Overloading,
Wart.Option2Iterable
)
scalafmtOnCompile := true
val sparkVersion = "2.1.0"
val apacheCommonVersion = "3.5"
val typesafeVersion = "1.3.1"
val jodaTimeVersion = "2.9.9"
val jodaConvertVersion = "1.9.2"
val scalaTestVersion = "3.0.4"
val sparkTestVersion = "2.1.0_0.8.0"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.commons" % "commons-lang3" % apacheCommonVersion,
"com.typesafe" % "config" % typesafeVersion,
"joda-time" % "joda-time" % jodaTimeVersion,
"org.joda" % "joda-convert" % jodaConvertVersion,
"org.scalatest" %% "scalatest" % scalaTestVersion % "test",
"com.holdenkarau" %% "spark-testing-base" % sparkTestVersion % "test"
)
assemblyMergeStrategy in assembly := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
}