Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Publishing Releases

Tim Fennell edited this page May 8, 2017 · 7 revisions

Publishing to Sonatype

Required Reading

See: http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html

Requirements

Set up PGP

See: http://www.scala-sbt.org/sbt-pgp/

Create a file at ~/.sbt/0.13/plugins/gpg.sbt with the following single line:

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")

If you do not currently have gpg installed you may need to install it (on Mac: brew install gpg). Once installed you'll need to generate a key with gpg --gen-key. After generating a key run gpg --export --armor and upload the key to http://pgp.mit.edu/ .

Set up your Sonatype credentials

Create .sbt/0.13/sonatype.sbt with your credentials as described here: https://github.com/xerial/sbt-sonatype

Perform the release

(1) Remove the snapshot version and perform a commit.

(2) Perform the release

sbt +publishSigned
sbt sonatypeRelease

(3) Bump the version number and add -SNAPSHOT.

Please note that sbt sonatypeRelease does the following:

sbt sonatypeClose
sbt sonatypePromote

(4) Add a release on github: https://github.com/fulcrumgenomics/dagr/releases