-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sbt
42 lines (30 loc) · 1.16 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
import com.typesafe.sbt.pgp.PgpKeys.publishSigned
import ReleaseTransformations._
// default to unused
publishArtifact := false
publishTo := Some(Resolver.file("Unused transient repository", file("target/unusedrepo")))
// skip in publish := true
homepage in ThisBuild := Some(url(Common.Publish.homepage))
scmInfo in ThisBuild := Some(ScmInfo(url(Common.Publish.homepage), Common.Publish.repo))
developers in ThisBuild := Common.Publish.devs.map({ case (h,n,e,u) => Developer(h, n, e, url(u)) }).toList
licenses in ThisBuild += (Common.License.name, url(Common.License.url))
pomIncludeRepository in ThisBuild := { _ => false }
publishMavenStyle in ThisBuild := true
releaseCrossBuild in ThisBuild := true
releasePublishArtifactsAction in ThisBuild := PgpKeys.publishSigned.value
releaseProcess in ThisBuild := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
//publishArtifacts,
releaseStepCommandAndRemaining("+publishArtifacts"),
releaseStepCommand("makeDocs"),
setNextVersion,
commitNextVersion,
//releaseStepCommand(s"sonatypeReleaseAll ${Common.organization}"),
pushChanges
)