Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.13 KB

publish-maven-central.md

File metadata and controls

22 lines (15 loc) · 1.13 KB

How to publish on Maven Central

First time:

  1. Create JIRA account
  2. Install gpg e.g. on OSX: brew install gpg
  3. Run gpg --gen-key to generate a new key. Remember the passphrase you used.
  4. Publish your public-key you created above e.g. gpg --keyserver hkp://pgp.mit.edu --send-keys 433884a7dae3eb82

For each project:

  1. Create new JIRA issue using above account to request new repo
  2. Wait till above issue is resolved
  3. Add sbt-pgp, sbt-release and sbt-sonatype as a plugin to your project. Here is an example plugins.sbt
  4. Here is an example build.sbt that I use for multi-projects

For each release:

  1. sbt release (will prompt for passphrase)
  2. View artifact here: https://oss.sonatype.org/content/repositories/releases/

source: https://gist.github.com/pathikrit/6a49de2489e53876679b