From 44d8a7de714657676fe3556adff2cf6a9eedf563 Mon Sep 17 00:00:00 2001 From: Lloyd Meta Date: Sun, 21 Jul 2013 23:07:35 +0900 Subject: [PATCH] Update PGP signing plugin details in the summary Since the recommended plugin is sbt-pgp, it was a little confusing to reach the bottom of the [Deploying to Sonatype](http://www.scala-sbt.org/release/docs/Community/Using-Sonatype.html#summary) guide and see references to the `xsbt-gpg-plugin` whereas the [top of the page](http://www.scala-sbt.org/release/docs/Community/Using-Sonatype.html#first-pgp-signatures) talks about using sbt-pgp. --- src/sphinx/Community/Using-Sonatype.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/sphinx/Community/Using-Sonatype.rst b/src/sphinx/Community/Using-Sonatype.rst index a8b6779f7..c2d0faa40 100644 --- a/src/sphinx/Community/Using-Sonatype.rst +++ b/src/sphinx/Community/Using-Sonatype.rst @@ -33,8 +33,8 @@ the same URLs for everyone: publishTo := { val nexus = "https://oss.sonatype.org/" - if (version.value.trim.endsWith("SNAPSHOT")) - Some("snapshots" at nexus + "content/repositories/snapshots") + if (version.value.trim.endsWith("SNAPSHOT")) + Some("snapshots" at nexus + "content/repositories/snapshots") else Some("releases" at nexus + "service/local/staging/deploy/maven2") } @@ -122,8 +122,8 @@ following: :: - credentials += Credentials("Sonatype Nexus Repository Manager", - "oss.sonatype.org", + credentials += Credentials("Sonatype Nexus Repository Manager", + "oss.sonatype.org", "", "") @@ -182,7 +182,7 @@ need to: - Have GPG key pair, with published public key, - An sbt file with your Sonatype credentials *that is not pushed to the VCS*, -- Modify ``project/plugins.sbt`` to include the ``xsbt-gpg-plugin`` to sign the artefacts, +- Add the `sbt-pgp plugin `_ to sign the artefacts, - Modify ``build.sbt`` with the required elements in the generated POM. Starting with a project that is not being published, you'll need to @@ -202,15 +202,15 @@ settings: "your-sonatype-username", "your-sonatype-password") -project/plugins.sbt -^^^^^^^^^^^^^^^^^^^ +~/.sbt/plugins/gpg.sbt +^^^^^^^^^^^^^^^^^^^^^^ -This file specifies the plugins for your project. If you intend to sign -the artefacts, you'll need to include @jsuereth's ``xsbt-gpg-plugin``: +The `sbt-pgp plugin `_ allows you to +sign your artefacts by running ``publish-signed`` in sbt: :: - addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6") + addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8") build.sbt ^^^^^^^^^