-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sbt
30 lines (25 loc) · 1.13 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
name := "diablo"
organization := "edu.uta"
version := "0.2"
scalaVersion := "2.12.15"
val sparkVersion = "3.2.1"
licenses += "Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0")
libraryDependencies ++= Seq("org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2",
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"org.apache.spark" %% "spark-core" % sparkVersion,
"org.apache.spark" %% "spark-sql" % sparkVersion,
"org.apache.spark" %% "spark-streaming" % sparkVersion
)
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, major)) if major <= 12 =>
Seq()
case _ =>
Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4")
}
}
// Use BLAS:
// libraryDependencies += "com.github.fommil.netlib" % "all" % "1.1.2" pomOnly()
scalacOptions ++= Seq(//"-deprecation",
"-Xno-patmat-analysis")
artifactName := { (sv: ScalaVersion, m: ModuleID, a: Artifact) => "../../lib/diablo.jar" }