This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
64 lines (52 loc) · 1.51 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
import sbtrelease._
import ReleaseTransformations._
import Dependencies._
name := "mongodb-auto-discovery"
scalaVersion := "2.11.7"
organization := "com.gu"
crossScalaVersions := Seq(scalaVersion.value)
scmInfo := Some(ScmInfo(
url("https://github.com/guardian/mongodb-auto-discovery"),
"scm:git:git@github.com:guardian/mongodb-auto-discovery.git"
))
homepage := Some(url("https://github.com/guardian/mongodb-auto-discovery"))
libraryDependencies ++= Seq(
awsSdk,
scalaTest,
scalaCheck
)
pomExtra := (
<developers>
<developer>
<id>nlindblad</id>
<name>Niklas Lindblad</name>
<url>https://github.com/guardian/mongodb-auto-discovery</url>
</developer>
</developers>)
publishMavenStyle := true
publishArtifact in Test := false
bintrayOrganization := Some("guardian")
bintrayRepository := "platforms"
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html"))
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")
}
pomIncludeRepository := { _ => false }
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _)),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)