Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
add sbt-release settings for publishing to Sonatype repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Pellegrini committed Sep 7, 2018
1 parent 96356d4 commit c7f2bba
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,23 @@ lazy val root = (project in file("."))
* sbt-scalafmt plugin
*/
scalafmtOnCompile := true

/**
* sbt-release plugin
*/
import ReleaseTransformations._

releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommand("publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeRelease"),
pushChanges
)

0 comments on commit c7f2bba

Please sign in to comment.