forked from graphframes/graphframes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
50 lines (34 loc) · 1.52 KB
/
build.sbt
File metadata and controls
50 lines (34 loc) · 1.52 KB
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
// Your sbt build file. Guides on how to write one can be found at
// http://www.scala-sbt.org/0.13/docs/index.html
val sparkVer = sys.props.getOrElse("spark.version", "1.4.1")
val sparkBranch = sparkVer.substring(0, 3)
val defaultScalaVer = sparkBranch match {
case "1.4" => "2.10.4"
case "1.5" => "2.10.4"
case "1.6" => "2.10.5"
case "2.0" => "2.11.7"
}
val scalaVer = sys.props.getOrElse("scala.version", defaultScalaVer)
sparkVersion := sparkVer
scalaVersion := scalaVer
spName := "graphframes/graphframes"
// Don't forget to set the version
version := s"0.1.0-spark$sparkBranch-SNAPSHOT"
// All Spark Packages need a license
licenses := Seq("Apache-2.0" -> url("http://opensource.org/licenses/Apache-2.0"))
// Add Spark components this package depends on, e.g, "mllib", ....
sparkComponents ++= Seq("graphx", "sql")
// uncomment and change the value below to change the directory where your zip artifact will be created
// spDistDirectory := target.value
// add any Spark Package dependencies using spDependencies.
// e.g. spDependencies += "databricks/spark-avro:0.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "2.0" % "test"
parallelExecution := false
unmanagedSourceDirectories in Compile ++=
Seq(baseDirectory.value / "src" / "main" / (if (sparkBranch == "1.4") "spark-1.4" else "spark-x"))
scalacOptions in (Compile, doc) ++= Seq(
"-groups",
"-implicits",
"-skip-packages", Seq("org.apache.spark").mkString(":"))
scalacOptions in (Test, doc) ++= Seq("-groups", "-implicits")
autoAPIMappings := true