Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Release

Mateusz Paprocki edited this page Aug 7, 2015 · 8 revisions

Assuming that the current development version is 0.3-SNAPSHOT:

  1. Start from a clean repository (i.e. run git deep-clean).
  2. Remove -SNAPSHOT suffix in version.sbt.
  3. Update README.md ("Usage" section and links to scaladoc).
  4. ./sbt +test +doc
  5. Make sure everything is green under 2.10 and 2.11.
  6. Commit changes with bokeh-scala 0.3 commit message.
  7. Tag this commit as v0.3 and sign using your PGP key.
  8. ./sbt +publishSigned +upload
  9. Go to oss.sonatype.org, review changes and finalize release.
  10. Increment version number in version.sbt to 0.4-SNAPSHOT.
  11. Commit changes with New release cycle commit message.
  12. ./sbt +publish (publish new snapshot to make scaladoc link alive).
  13. Update bokeh-scala-sample, by using 0.3 in version and libraryDependencies in build.sbt.
  14. Add release notes to v0.3 tag on GitHub.
  15. Send announcement for the release to bokeh@continuum.io.

Note that step 8. is irreversible. Artifacts published to the central repository can't be removed (for good reasons). If the release is defunct, just fix the problem and create a new release. Let people know in the announcement there's a version that shouldn't be used.

tl;dr:

$ VERSION=$(grep --perl-regexp --only-matching "\d+\.\d+" version.sbt)
$ git deep-clean
$ sed -i s/-SNAPSHOT// version.sbt
$ ./sbt +test +doc || exit
$ git add version.sbt
$ git commit -m "bokeh-scala $VERSION"
$ git tag -s -m "bokeh-scala $VERSION" v$version
$ ./sbt +publishSigned +upload
$ sed 's/\([0-9]\+\.\)\([0-9]\+\)/echo "\1$((\2+1))-SNAPSHOT"/e' version.sbt
$ git add version.sbt
$ git commit -m "New release cycle"
$ git push origin --tags

Useful literature:

  1. http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html
  2. http://central.sonatype.org/pages/releasing-the-deployment.html
Clone this wiki locally