[S2GRAPH-115] forces publishSigned; version is now in version.sbt, to enable 
using sbt-release-plugin


Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/a772061d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/a772061d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/a772061d

Branch: refs/heads/master
Commit: a772061d7f8630f729b69c952cdf03821bf2c883
Parents: 04b731e
Author: Jong Wook Kim <[email protected]>
Authored: Mon Nov 7 19:23:07 2016 -0500
Committer: Jong Wook Kim <[email protected]>
Committed: Mon Nov 7 19:24:07 2016 -0500

----------------------------------------------------------------------
 build.sbt               | 16 +++++++++++++---
 project/Publisher.scala |  2 ++
 version.sbt             |  1 +
 3 files changed, 16 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/a772061d/build.sbt
----------------------------------------------------------------------
diff --git a/build.sbt b/build.sbt
index ae3efb3..dc15792 100755
--- a/build.sbt
+++ b/build.sbt
@@ -18,6 +18,7 @@
  */
 
 import ReleaseTransformations._
+import PgpKeys._
 import sbt.complete.Parsers.spaceDelimited
 
 name := "s2graph"
@@ -25,7 +26,6 @@ name := "s2graph"
 lazy val commonSettings = Seq(
   organization := "org.apache.s2graph",
   scalaVersion := "2.11.7",
-  version := "0.1.1-SNAPSHOT",
   isSnapshot := version.value.endsWith("-SNAPSHOT"),
   scalacOptions := Seq("-language:postfixOps", "-unchecked", "-deprecation", 
"-feature", "-Xlint", "-Xlint:-missing-interpolator"),
   javaOptions ++= 
collection.JavaConversions.propertiesAsScalaMap(System.getProperties).map { 
case (key, value) => "-D" + key + "=" + value }.toSeq,
@@ -77,6 +77,16 @@ runRatTask := {
 
 Packager.defaultSettings
 
+publishSigned := {
+  (publishSigned in s2rest_play).value
+  (publishSigned in s2rest_netty).value
+  (publishSigned in s2core).value
+  (publishSigned in spark).value
+  (publishSigned in loader).value
+  (publishSigned in s2counter_core).value
+  (publishSigned in s2counter_loader).value
+}
+
 releaseProcess := Seq[ReleaseStep](
   checkSnapshotDependencies,              // : ReleaseStep
   inquireVersions,                        // : ReleaseStep
@@ -89,6 +99,6 @@ releaseProcess := Seq[ReleaseStep](
   commitNextVersion
 )
 
-releasePublishArtifactsAction := PgpKeys.publishSigned.value
+releasePublishArtifactsAction := publishSigned.value
 
-mainClass in (Compile) := None
\ No newline at end of file
+mainClass in Compile := None
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/a772061d/project/Publisher.scala
----------------------------------------------------------------------
diff --git a/project/Publisher.scala b/project/Publisher.scala
index add1279..ed3bdab 100644
--- a/project/Publisher.scala
+++ b/project/Publisher.scala
@@ -3,7 +3,9 @@ import sbt._
 import scala.xml.XML
 
 object Publisher {
+
   val defaultSettings = Seq(
+    publish := {}, // disable unsigned publishing
     publishMavenStyle := true,
     publishTo := {
       if (isSnapshot.value) {

http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/a772061d/version.sbt
----------------------------------------------------------------------
diff --git a/version.sbt b/version.sbt
new file mode 100644
index 0000000..d95fe6f
--- /dev/null
+++ b/version.sbt
@@ -0,0 +1 @@
+version in ThisBuild := "0.1.1-SNAPSHOT"
\ No newline at end of file

Reply via email to