-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.sbt
46 lines (38 loc) · 1.44 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
name := "spark-scala-application"
version := "0.0.0-SNAPSHOT"
organization := "thw.vancann"
scalaVersion := "2.11.11"
val sparkVersion = "2.2.0"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % Provided,
"org.apache.spark" %% "spark-sql" % sparkVersion % Provided,
"org.apache.spark" %% "spark-hive" % sparkVersion % Provided,
"com.github.scopt" %% "scopt" % "3.3.0" % Compile,
"org.scalatest" %% "scalatest" % "2.2.1" % "test, it"
)
// test run settings
//parallelExecution in Test := false
assembly / test := {}
// Enable integration tests
Defaults.itSettings
lazy val root = project.in(file(".")).configs(IntegrationTest)
// Measure time for each test
Test / testOptions += Tests.Argument("-oD")
IntegrationTest / testOptions += Tests.Argument("-oD")
// Scoverage settings
coverageExcludedPackages := "<empty>;.*storage.*"
coverageMinimum := 70
coverageFailOnMinimum := true
// Scalastyle settings
scalastyleFailOnWarning := false
scalastyleFailOnError := true
// Publish settings
//publishTo := Some("Sonatype Snapshots Nexus" at "https://oss.sonatype.org/content/repositories/snapshots")
//publishTo := {
// val nexus = "https://my.artifact.repo.net/"
// if (isSnapshot.value)
// Some("snapshots" at nexus + "content/repositories/snapshots")
// else
// Some("releases" at nexus + "service/local/staging/deploy/maven2")
//}
//credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")