diff --git a/build.sbt b/build.sbt index 5118fa0..104b2fa 100644 --- a/build.sbt +++ b/build.sbt @@ -1,6 +1,3 @@ -import SonatypeKeys._ - -sonatypeSettings name := "snappy-java" @@ -10,7 +7,7 @@ organizationName := "xerial.org" description := "snappy-java: A fast compression/decompression library" -profileName := "org.xerial" +sonatypeProfileName := "org.xerial" pomExtra := { https://github.comm/xerial/snappy-java @@ -47,7 +44,7 @@ pomExtra := { } -scalaVersion := "2.11.1" +scalaVersion := "2.11.6" javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.6", "-target", "1.6") @@ -114,3 +111,20 @@ OsgiKeys.additionalHeaders := Map( "Bundle-ActivationPolicy" -> "lazy", "Bundle-Name" -> "snappy-java: A fast compression/decompression library" ) + +import ReleaseTransformations._ + +releaseProcess := Seq[ReleaseStep]( + checkSnapshotDependencies, + inquireVersions, + runClean, + runTest, + setReleaseVersion, + commitReleaseVersion, + tagRelease, + ReleaseStep(action = Command.process("publishSigned", _)), + setNextVersion, + commitNextVersion, + ReleaseStep(action = Command.process("sonatypeReleaseAll", _)), + pushChanges +) diff --git a/project/build.properties b/project/build.properties index 005786e..07b0ebb 100755 --- a/project/build.properties +++ b/project/build.properties @@ -1,2 +1,2 @@ -sbt.version=0.13.6 +sbt.version=0.13.8 diff --git a/project/plugins.sbt b/project/plugins.sbt index 609b225..223eaec 100755 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,9 +1,9 @@ -addSbtPlugin("com.github.gseitz" % "sbt-release" % "0.7.1") +addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.0") -addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.2.1") +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "0.5.0") -addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3") +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") addSbtPlugin("de.johoop" % "findbugs4sbt" % "1.3.0")