Skip to content

Publishing Releases

Nils Homer edited this page Jan 7, 2017 · 15 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/

Add the following to your ~/.sbt/0.13/plugins/gpg.sbt file:

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

Modify gpgCommand and pgpSecretRing as necessary. You may need to install gpg (Mac: brew install gpg).

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) Verify that all dependencies are on a release version, in particular dagr.

(3) Perform the release

sbt publishSigned
sbt sonatypeRelease

(4) Bump the version number and add -SNAPSHOT. Do so for any dependencies which we want to use the snapshot version, in particular dagr.

Please note that sbt sonatypeRelease does the following:

sbt sonatypeClose
sbt sonatypePromote

(5) Add a release on github: https://github.com/fulcrumgenomics/fgbio/releases