Skip to content

Commit b04486a

Browse files
committed
Configure sbt-release
1 parent 359cc3f commit b04486a

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

build.sbt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,27 @@ lazy val todoAppExample = (project in file("examples/todo-app"))
8282
.dependsOn(core, playSqlModule)
8383

8484
// Aggregate all projects
85-
8685
lazy val root: Project = project
8786
.in(file("."))
8887
.aggregate(core, playSqlModule, sampleAppExample, todoAppExample)
8988
.settings(Publish.skipSettings)
89+
90+
// sbt-release
91+
releaseCrossBuild := true
92+
releaseProcess := {
93+
import ReleaseTransformations._
94+
95+
Seq[ReleaseStep](
96+
checkSnapshotDependencies,
97+
inquireVersions,
98+
runClean,
99+
runTest,
100+
setReleaseVersion,
101+
commitReleaseVersion,
102+
tagRelease,
103+
releaseStepCommandAndRemaining("publish"), // the default step 'publishArtifacts' ignores the 'publish / skip := true' key...
104+
setNextVersion,
105+
commitNextVersion,
106+
pushChanges
107+
)
108+
}

project/plugins.sbt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")
2-
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.3.7")
1+
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")
2+
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.3.7")
3+
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.10")
34

45
// The Play plugin, used for the play-sql module
56
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.20")

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ThisBuild / version := "0.0.1-SNAPSHOT"
1+
version in ThisBuild := "0.0.1-SNAPSHOT"

0 commit comments

Comments
 (0)