-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
43 lines (36 loc) · 1.33 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
name := "damavis-elasticity-demo"
val sparkVersion = "3.2.0"
val sparkDependencies = Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % Provided,
"org.apache.spark" %% "spark-sql" % sparkVersion % Provided,
"org.apache.spark" %% "spark-hive" % sparkVersion,
"org.apache.spark" %% "spark-mllib" % sparkVersion % Provided
)
val actualDependencies = Seq(
"com.typesafe" % "config" % "1.4.1",
"com.github.scopt" %% "scopt" % "4.0.1",
"com.damavis" %% "damavis-spark-core" % "0.3.9"
)
val testDependencies = Seq(
"org.scalamock" %% "scalamock" % "5.1.0" % Test,
"com.holdenkarau" %% "spark-testing-base" % "3.2.0_1.1.1" % Test
)
lazy val settings = Seq(
organization := "com.damavis",
version := "0.1.0-SNAPSHOT",
scalaVersion := "2.12.12",
libraryDependencies ++= sparkDependencies ++ actualDependencies ++ testDependencies,
Test / fork := false,
Test / parallelExecution := false
)
lazy val assemblySettings: Seq[SettingsDefinition] = Seq(
assembly / assemblyMergeStrategy := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => MergeStrategy.first
},
Compile / runMain := Defaults
.runMainTask(Compile / fullClasspath, Compile / run / runner)
.evaluated
)
lazy val root = (project in file("."))
.settings(settings ++ assemblySettings: _*)