forked from saurfang/spark-sas7bdat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
39 lines (31 loc) · 1.14 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
name := "spark-sas7bdat"
version := "1.1.6"
organization := "com.github.saurfang"
scalaVersion := "2.11.6"
crossScalaVersions := Seq("2.10.4")
scalacOptions ++= Seq("-target:jvm-1.7" )
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
libraryDependencies ++= Seq(
"com.epam" % "parso" % "2.0.7",
"org.scalatest" %% "scalatest" % "3.0.4" % "test",
"org.apache.logging.log4j" % "log4j-api-scala_2.12" % "11.0"
)
//sbt-spark-package
spName := "saurfang/spark-sas7bdat"
sparkVersion := "2.1.0"
sparkComponents += "sql"
spAppendScalaVersion := true
licenses += "GPL-3.0" -> url("http://opensource.org/licenses/GPL-3.0")
//include provided dependencies in sbt run task
run in Compile := Defaults.runTask(fullClasspath in Compile, mainClass in (Compile, run), runner in (Compile, run))
//only one living spark-context is allowed
parallelExecution in Test := false
//skip test during assembly
test in assembly := {}
//override modified parser class
assemblyMergeStrategy in assembly := {
case PathList("com", "epam", xs @ _*) => MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}