Skip to content

Commit

Permalink
Added sbt release.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzai committed Dec 9, 2018
1 parent 19df756 commit 7e92eac
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
21 changes: 20 additions & 1 deletion build.sbt
@@ -1,5 +1,4 @@
ThisBuild / organization := "io.github.yangzai"
ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.12.8"
ThisBuild / crossScalaVersions += "2.11.12"
Expand All @@ -20,3 +19,23 @@ lazy val root = project in file(".") aggregate(core, contrib) dependsOn core set

useGpg := true
ThisBuild / publishTo := sonatypePublishTo.value

import ReleaseTransformations._

releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommand("sonatypeReleaseAll"),
pushChanges
)

releasePublishArtifactsAction := PgpKeys.publishSigned.value
1 change: 1 addition & 0 deletions project/plugins.sbt
@@ -1,3 +1,4 @@
addSbtPlugin("org.wartremover" % "sbt-wartremover" % "2.3.7")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.10")
1 change: 1 addition & 0 deletions version.sbt
@@ -0,0 +1 @@
ThisBuild / version := "0.1.0-SNAPSHOT"

0 comments on commit 7e92eac

Please sign in to comment.