-
Notifications
You must be signed in to change notification settings - Fork 6
/
publish.sbt
48 lines (43 loc) · 1.32 KB
/
publish.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
publishMavenStyle := 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")
}
pomExtra := {
<scm>
<url>[email protected]:LifeWay/scala-aws-lambda-handler.git</url>
<connection>scm:git:[email protected]:LifeWay/scala-aws-lambda-handler.git</connection>
</scm>
<developers>
<developer>
<id>lifeway</id>
<name>LifeWay Christian Resources</name>
<url>https://www.lifeway.com</url>
</developer>
</developers>
}
pomIncludeRepository := { _ => false }
homepage := Some(url(s"https://github.com/LifeWay/scala-aws-lambda-handler"))
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.html"))
sonatypeProfileName := "com.lifeway"
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseTagName := s"${(version in ThisBuild).value}"
releaseCrossBuild := true
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)