forked from geekminer/sbt-release-sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
46 lines (33 loc) · 1.34 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
import ReleaseTransformations._
import com.typesafe.sbt.pgp
name := "sbt-release-sample"
scalaVersion := "2.12.4"
organization := "uk.co.callhandling"
moduleName := "test-release"
pomIncludeRepository := { (repo: MavenRepository) =>
repo.root.startsWith("file:")
}
licenses := Seq("Apache 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0"))
homepage := Some(url("https://github.com/geekminer/sbt-release-sample"))
scmInfo := homepage.value.map(url => ScmInfo(
url,
"scm:[email protected]:pierrebruninmaif/sbt-release-sample.git"
))
publishMavenStyle := true
publishArtifact in Test := false
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease,
setNextVersion, // : ReleaseStep
commitNextVersion, // : ReleaseStep
pushChanges
)
releaseUseGlobalVersion := false
/*
PgpKeys.pgpSelectPassphrase in Global := pgpPassphrase.value orElse
(Credentials.forHost(credentials.value, "pgp") map (_.passwd.toCharArray))*/