Skip to content

Commit

Permalink
Configure sbt-release
Browse files Browse the repository at this point in the history
  • Loading branch information
guilgaly committed Nov 30, 2018
1 parent bb08320 commit e87b4c4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
21 changes: 20 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,27 @@ lazy val todoAppExample = (project in file("examples/todo-app"))
.dependsOn(core, playSqlModule)

// Aggregate all projects

lazy val root: Project = project
.in(file("."))
.aggregate(core, playSqlModule, sampleAppExample, todoAppExample)
.settings(Publish.skipSettings)

// sbt-release
releaseCrossBuild := true
releaseProcess := {
import ReleaseTransformations._

Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("publish"), // the default step 'publishArtifacts' ignores the 'publish / skip := true' key...
setNextVersion,
commitNextVersion,
pushChanges
)
}
5 changes: 3 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.3.7")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.3.7")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.10")

// The Play plugin, used for the play-sql module
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.20")
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "0.0.1-SNAPSHOT"
version in ThisBuild := "0.0.1-SNAPSHOT"

0 comments on commit e87b4c4

Please sign in to comment.