-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## Setup GPG | ||
|
||
Releasing artifacts to Maven Central requires signing them. Make sure gpg is set up: | ||
|
||
[http://central.sonatype.org/pages/working-with-pgp-signatures.html](http://central.sonatype.org/pages/working-with-pgp-signatures.html). | ||
|
||
## Setup Maven | ||
|
||
In `$HOME/.m2/settings.xml`, add credentials for accessing | ||
[Sonatype's OSS Repository](https://oss.sonatype.org/): | ||
|
||
<settings> | ||
<servers> | ||
<server> | ||
<id>ossrh-interedition</id> | ||
<username>interedition</username> | ||
<password>...</password> | ||
</server> | ||
</servers> | ||
</settings> | ||
|
||
## Update changelog | ||
|
||
Edit `changelog.txt`. | ||
|
||
## Update POMs and site to reflect new release version | ||
|
||
mvn versions:set -DnewVersion=1.2.3 | ||
|
||
Edit `site/grunt/jade.js` and update `dist.options.data.version`. | ||
|
||
## Deploy artifacts to staging area | ||
|
||
Activate the `release` profile in order to attach Javadocs and sources to build artifacts. | ||
|
||
mvn clean deploy -P release | ||
|
||
## Commit and push released version to VCS and tag release | ||
|
||
Push to Github and create a release. | ||
|
||
## Release successfully staged artifacts | ||
|
||
mvn nexus-staging:release |