Update to 1.0 of sbt-release plugin

This commit is contained in:
Sarah Gerweck 2015-08-15 02:37:39 -07:00
parent 4bc515b73f
commit 2a6e0ee5e7
2 changed files with 6 additions and 24 deletions

View File

@ -180,31 +180,13 @@ object Release {
import sbtrelease._ import sbtrelease._
import ReleaseStateTransformations._ import ReleaseStateTransformations._
import ReleasePlugin._ import ReleasePlugin._
import ReleaseKeys._ import ReleasePlugin.autoImport._
import Utilities._ import com.typesafe.sbt.SbtPgp.PgpKeys
import com.typesafe.sbt.SbtPgp.PgpKeys._
val settings = releaseSettings ++ Seq ( val settings = Seq (
ReleaseKeys.crossBuild := true, releaseCrossBuild := true,
ReleaseKeys.releaseProcess := Seq[ReleaseStep]( releasePublishArtifactsAction := PgpKeys.publishSigned.value
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts.copy(action = publishSignedAction),
setNextVersion,
commitNextVersion,
pushChanges
) )
)
lazy val publishSignedAction = { st: State =>
val extracted = st.extract
val ref = extracted.get(thisProjectRef)
extracted.runAggregated(publishSigned in Global in ref, st)
}
} }
object Eclipse { object Eclipse {

View File

@ -6,5 +6,5 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.3.0") addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.3.0")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.8.5") addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")