-
Notifications
You must be signed in to change notification settings - Fork 3
/
publish.sbt
46 lines (40 loc) · 1.58 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
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true
ThisBuild / releaseCrossBuild := true
ThisBuild / releasePublishArtifactsAction := PgpKeys.publishSigned.value
ThisBuild / publishTo := Some(if (isSnapshot.value) Opts.resolver.sonatypeSnapshots else Opts.resolver.sonatypeStaging)
ThisBuild / Test / publishArtifact := false
ThisBuild / Compile / packageBin / publishArtifact := true
ThisBuild / Compile / packageDoc / publishArtifact := false
ThisBuild / Compile / packageSrc / publishArtifact := true
Global / PgpKeys.useGpg := true // workaround with pgp and sbt 1.2.x
ThisBuild / pgpSecretRing := pgpPublicRing.value // workaround with pgp and sbt 1.2.x
ThisBuild / pomExtra in Global := {
<developers>
<developer>
<id>dacr</id>
<name>David Crosson</name>
<url>https://github.com/dacr</url>
</developer>
</developers>
}
ThisBuild / releaseTagComment := s"Releasing ${(ThisBuild / version).value}"
ThisBuild / releaseCommitMessage := s"Setting version to ${(ThisBuild / version).value}"
ThisBuild / releaseNextCommitMessage := s"[ci skip] Setting version to ${(ThisBuild / version).value}"
ThisBuild / releaseProcess := {
import ReleaseTransformations._
Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
// runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)
}