Skip to content

Commit 27739f1

Browse files
committed
Add sbt-release plugin
1 parent 00013ab commit 27739f1

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

build.sbt

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ val javaVersion = "1.8"
33
inThisBuild(
44
Seq(
55
organization := "software.purpledragon.xml",
6-
version := "1.0.3-SNAPSHOT",
76
scalaVersion := "2.13.1",
87
crossScalaVersions := Seq(scalaVersion.value, "2.11.12", "2.12.10"),
98
licenses += ("Apache-2.0", url("https://opensource.org/licenses/Apache-2.0")),
@@ -47,6 +46,7 @@ lazy val xmlSpecs2 = Project("xml-specs2", file("xml-specs2"))
4746
previewAuto := {}
4847
)
4948

49+
import ReleaseTransformations._
5050
lazy val root = Project("scala-xml-compare", file("."))
5151
.aggregate(
5252
xmlCompare,
@@ -67,6 +67,23 @@ lazy val root = Project("scala-xml-compare", file("."))
6767
scalacOptions in Compile in doc ++= Seq(
6868
"-doc-root-content",
6969
baseDirectory.value + "/root-scaladoc.txt"
70+
),
71+
// sbt-release settings
72+
releaseCrossBuild := true,
73+
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
74+
releaseProcess := Seq[ReleaseStep](
75+
checkSnapshotDependencies,
76+
inquireVersions,
77+
runClean,
78+
runTest,
79+
setReleaseVersion,
80+
commitReleaseVersion,
81+
tagRelease,
82+
publishArtifacts,
83+
releaseStepTask(ghpagesPushSite),
84+
setNextVersion,
85+
commitNextVersion,
86+
pushChanges
7087
)
7188
)
7289
.enablePlugins(ScalaUnidocPlugin, GhpagesPlugin, ParadoxSitePlugin)

project/plugins.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.0.0")
77
// artifact publishing
88
addSbtPlugin("org.foundweekends" % "sbt-bintray" % "0.5.4")
99
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.2-1")
10+
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.11")
1011

1112
// documentation
1213
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.2")

version.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version in ThisBuild := "1.0.3-SNAPSHOT"

0 commit comments

Comments
 (0)