-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
40 lines (33 loc) · 1.43 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
lazy val root = (project in file(".")).settings(
name := "spark-recommender",
version := "1.0",
scalaVersion := "2.11.8",
organization := "Faculty of Electrical Engineering and Computing, University of Zagreb",
startYear := Some(2017),
mainClass in Compile := Some("hr.fer.ztel.thesis.Main"),
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false),
parallelExecution in Test := true,
test in assembly := {} // remove if you want to start tests
)
lazy val unprovidedDependencies = Seq(
"com.github.fommil.netlib" % "all" % "1.1.2",
"org.scalactic" %% "scalactic" % "3.0.1",
"org.scalatest" %% "scalatest" % "3.0.1" % "test"
)
libraryDependencies ++= unprovidedDependencies
val sparkVersion = "2.1.0.cloudera1"
lazy val providedDependencies = Seq(
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion,
"org.apache.spark" %% "spark-mllib" % sparkVersion
)
libraryDependencies ++= providedDependencies.map(_ % "provided")
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "MANIFEST.MF") => MergeStrategy.discard
case PathList("org", "apache", "spark", "unused", "UnusedStubClass.class") => MergeStrategy.first
case _ => MergeStrategy.first
}
resolvers ++= Seq(
"Cloudera Maven repository" at "https://repository.cloudera.com/artifactory/cloudera-repos",
"Artima Maven Repository" at "http://repo.artima.com/releases"
)