-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sbt
50 lines (42 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
44
45
46
47
48
49
50
name := "spark-optics"
scalaVersion := "2.12.9"
crossScalaVersions := Seq("2.11.12", "2.12.13")
parallelExecution in Test := false
fork in Test := true
javaOptions ++= Seq("-Xms512M",
"-Xmx2048M",
"-XX:MaxPermSize=2048M",
"-XX:+CMSClassUnloadingEnabled")
lazy val sparkVersion = settingKey[String]("the spark version")
sparkVersion := (scalaBinaryVersion.value match {
case "2.11" => "2.4.5"
case "2.12" => "3.0.1"
})
lazy val sparkTestVersion = settingKey[String]("the spark test")
sparkTestVersion := (scalaBinaryVersion.value match {
case "2.11" => "0.14.0"
case "2.12" => "1.0.0"
})
libraryDependencies ++= {
Seq(
"org.apache.spark" %% "spark-sql" % sparkVersion.value % "provided",
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"com.holdenkarau" %% "spark-testing-base" % s"${sparkVersion.value}_${sparkTestVersion.value}" % "test"
)
}
licenses := Seq(
"Apache License 2.0" -> url(
"http://www.apache.org/licenses/LICENSE-2.0.html"))
inThisBuild(List(
organization := "org.hablapps",
homepage := Some(url("https://github.com/hablapps/sparkOptics")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
developers := List(
Developer(
"Alfonso",
"Alfonso Roa Redondo",
url("https://github.com/alfonsorr")
)
)
))