-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
43 lines (34 loc) · 1.01 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
import sbt.Keys._
import sbt._
val baseSettings = Seq(
organization := "com.agoda.ml.spark.hpopt",
scalaVersion := "2.11.12",
fork in Test := true,
javaOptions in Test += "-Xmx4G",
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1),
updateOptions := updateOptions.value.withCachedResolution(true)
)
val assemblySettings = Seq(
assemblyJarName in assembly := "assembly.jar"
)
val SparkVersion = "2.4.7"
val v = new {
val scalatest = "3.0.4"
val scalamock = "3.6.0"
}
val baseDependencies = Seq(
"org.scalatest" %% "scalatest" % v.scalatest % "test",
"org.scalamock" %% "scalamock-scalatest-support" % v.scalamock % "test"
)
val sparkDependencies = baseDependencies ++ Seq(
"org.apache.spark" %% "spark-sql" % SparkVersion % "provided",
"org.apache.spark" %% "spark-mllib" % SparkVersion % "provided"
)
// Modules
lazy val hpopt = project
.settings(baseSettings: _*)
.settings(assemblySettings: _*)
.settings(
libraryDependencies ++= sparkDependencies,
name := "hpopt"
)