First time:
- Create JIRA account
- Install
gpg
e.g. on OSX:brew install gpg
- Run
gpg --gen-key
to generate a new key. Remember the passphrase you used. - Publish your public-key you created above e.g.
gpg --keyserver hkp://pgp.mit.edu --send-keys 433884a7dae3eb82
For each project:
- Create new JIRA issue using above account to request new repo
- Wait till above issue is resolved
- Add
sbt-pgp
,sbt-release
andsbt-sonatype
as a plugin to your project. Here is an example plugins.sbt - Here is an example build.sbt that I use for multi-projects
For each release:
sbt release
(will prompt for passphrase)- View artifact here: https://oss.sonatype.org/content/repositories/releases/
source: https://gist.github.com/pathikrit/6a49de2489e53876679b