-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
47 lines (37 loc) · 1.64 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
ThisBuild / scalaVersion := "2.11.8"
ThisBuild / organization := "de.example.spark.testing"
ThisBuild / version := "0.1.0-SNAPSHOT"
name := "shared-spark-session-helper"
resolvers += Resolver.mavenLocal
val sparkVersion = "2.4.5"
// Logging
libraryDependencies +="com.typesafe.scala-logging" %% "scala-logging" % "3.9.0"
// Spark
libraryDependencies +="org.apache.spark" %% "spark-sql" % sparkVersion % Provided
libraryDependencies +="org.apache.spark" %% "spark-core" % sparkVersion % Provided
libraryDependencies +="org.apache.spark" %% "spark-hive" % sparkVersion % Provided
// Test
libraryDependencies += "org.mockito" %% "mockito-scala-scalatest" % "1.11.3" % Test
libraryDependencies +="org.scalatestplus" %% "scalatestplus-scalacheck" % "3.1.0.0-RC2" % Test
libraryDependencies +="org.scalacheck" %% "scalacheck" % "1.14.2" % Test
libraryDependencies += "junit" % "junit" % "4.12" % Test
libraryDependencies +="org.scalatest" %% "scalatest" % "3.1.0" % Test
libraryDependencies +="org.mockito" %% "mockito-scala" % "1.10.0" % Test
// Settings
// Scalastyle
scalastyleFailOnError := true
scalastyleFailOnWarning := true
scalastyleConfig := file("scalastyle_config.xml")
(scalastyleFailOnError in Test) := true
(scalastyleFailOnWarning in Test) := true
(scalastyleConfig in Test) := file("scalastyle_config.xml")
// Testing
testForkedParallel in Test := false
testForkedParallel in IntegrationTest := false
fork in Test := true
parallelExecution in Test := false
// Assembly
import sbt.Package.ManifestAttributes
import com.typesafe.sbt.SbtGit.git
test in assembly := {}
packageOptions := Seq(ManifestAttributes(("Repository-Commit", git.gitHeadCommit.value.get)))