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 ReleaseStateTransformations._
import ReleasePlugin._
import ReleaseKeys._
import Utilities._
import com.typesafe.sbt.SbtPgp.PgpKeys._
import ReleasePlugin.autoImport._
import com.typesafe.sbt.SbtPgp.PgpKeys
val settings = releaseSettings ++ Seq (
ReleaseKeys.crossBuild := true,
ReleaseKeys.releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts.copy(action = publishSignedAction),
setNextVersion,
commitNextVersion,
pushChanges
)
val settings = Seq (
releaseCrossBuild := true,
releasePublishArtifactsAction := PgpKeys.publishSigned.value
)
lazy val publishSignedAction = { st: State =>
val extracted = st.extract
val ref = extracted.get(thisProjectRef)
extracted.runAggregated(publishSigned in Global in ref, st)
}
}
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("com.github.gseitz" % "sbt-release" % "0.8.5")
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0")