This repository has been archived by the owner on Dec 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sbt
95 lines (86 loc) · 2.56 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/********************
* Identity *
********************/
name := "cookie-datasets"
organization := "ai.cookie"
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))
/********************
* Version *
********************/
scalaVersion := "2.10.4"
sparkVersion := "1.5.0"
crossScalaVersions := Seq("2.10.4")
/********************
* scaladocs *
********************/
autoAPIMappings := true
/********************
* Test *
********************/
parallelExecution in Test := false
fork := true
test in assembly := {}
/*******************
* Spark Packages
********************/
spName := "cookieai/cookie-datasets"
spAppendScalaVersion := true
spIncludeMaven := true
spIgnoreProvided := true
/********************
* Release settings *
********************/
publishMavenStyle := true
pomIncludeRepository := { _ => false }
publishArtifact in Test := false
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")
}
pomExtra :=
<url>https://github.com/cookieai/cookie-datasets</url>
<scm>
<url>[email protected]:cookieai/cookie-datasets.git</url>
<connection>scm:git:[email protected]:cookieai/cookie-datasets.git</connection>
</scm>
<developers>
<developer>
<id>EronWright</id>
<name>Eron Wright</name>
<url>https://github.com/EronWright</url>
</developer>
</developers>
/********************
* sbt-release *
********************/
releaseCrossBuild := true
releasePublishArtifactsAction := PgpKeys.publishSigned.value
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true),
pushChanges
)
/********************
* Dependencies *
********************/
sparkComponents := Seq("core", "sql", "mllib")
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion.value % Test force(),
"org.apache.spark" %% "spark-sql" % sparkVersion.value % Test force(),
"org.apache.spark" %% "spark-mllib" % sparkVersion.value % Test force(),
"org.scalatest" %% "scalatest" % "2.2.5" % Test,
"com.holdenkarau" %% "spark-testing-base" % s"${sparkVersion.value}_0.2.1" % Test
)