-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.sbt
72 lines (55 loc) · 1.63 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
organization := "com.soundcloud"
name := "spark-pagerank"
scalaVersion := "2.12.8"
crossScalaVersions := Seq("2.11.12", "2.12.8")
publishMavenStyle := true
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-language:implicitConversions"
)
// can't run multiple SparkContext's in local mode in parallel
parallelExecution in Test := false
// main dependencies
libraryDependencies ++= Seq(
"args4j" % "args4j" % "2.0.31" % "optional",
"org.apache.spark" %% "spark-core" % "2.4.2" % "provided",
"org.apache.spark" %% "spark-sql" % "2.4.2" % "provided"
)
// test dependencies
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
)
// sbt-release settings
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseCrossBuild := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishArtifact in Test := false
useGpg := true
// metadata
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
homepage := Some(url("https://github.com/soundcloud/spark-pagerank"))
scmInfo := Some(
ScmInfo(
url("https://github.com/soundcloud/spark-pagerank"),
"scm:git@github.com:soundcloud/spark-pagerank.git"
)
)
developers := List(
Developer(
id = "joshdevins",
name = "Josh Devins",
email = "hi@joshdevins.com",
url = url("http://joshdevins.com")
)
)
// dependency plugin
// docs: https://github.com/jrudolph/sbt-dependency-graph
net.virtualvoid.sbt.graph.Plugin.graphSettings