-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRelease.scala
66 lines (59 loc) · 1.88 KB
/
Release.scala
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
65
66
import com.typesafe.sbt.pgp.PgpKeys._
import sbt._
import sbt.Keys._
import sbtrelease.ReleasePlugin.ReleaseKeys._
import sbtrelease.ReleaseStateTransformations._
import sbtrelease.ReleaseStep
import xerial.sbt.Sonatype.SonatypeKeys._
object Release {
lazy val publishSignedArtifactsAction = {
st: State =>
val extracted = Project.extract(st)
val ref = extracted.get(thisProjectRef)
extracted.runAggregated(publishSigned in Global in ref, st)
}
val settings =
xerial.sbt.Sonatype.sonatypeSettings ++
com.typesafe.sbt.SbtPgp.settings ++
sbtrelease.ReleasePlugin.releaseSettings ++
Seq(
// remove when issue fixed: https://github.com/sbt/sbt-release/issues/70
crossScalaVersions := Seq(scalaVersion.value),
profileName := "de.leanovate",
publishMavenStyle := true,
pomExtra := {
<url>https://github.com/leanovate/doby</url>
<licenses>
<license>
<name>MIT</name>
<url>http://opensource.org/licenses/MIT</url>
</license>
</licenses>
<scm>
<connection>scm:git:github.com/leanovate/doby</connection>
<developerConnection>scm:git:git@github.com:/leanovate/doby</developerConnection>
<url>github.com/leanovate/doby</url>
</scm>
<developers>
<developer>
<id>yanns</id>
<name>Yann Simon</name>
<url>http://yanns.github.io/</url>
</developer>
</developers>
},
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts.copy(action = publishSignedArtifactsAction),
setNextVersion,
commitNextVersion,
pushChanges
)
)
}