This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
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
2 changed files
with
129 additions
and
3 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,42 @@ | ||
RELEASING | ||
========= | ||
|
||
This file outlines how to publish a new release to Maven Central. | ||
|
||
Prerequisites | ||
------------- | ||
|
||
* You will need the Cojen GPG key and passphrase to continue. Contact | ||
@jesterpm or @broneill to obtain them. | ||
|
||
* You will need an account with Sonatype Nexus. You can create that | ||
[here](https://issues.sonatype.org/secure/Signup!default.jspa). Contact | ||
@jesterpm or @broneill for access to the Cojen repository. | ||
|
||
Process | ||
------- | ||
|
||
1. Increment the version number appropriately. | ||
Use [Semantic Versioning](http://semver.org/). | ||
|
||
VERSION=2.2.5 | ||
mvn versions:set -DnewVersion=$VERSION | ||
|
||
2. Verify the release and make sure all is well. | ||
|
||
mvn clean verify -P release | ||
|
||
3. Commit and tag the latest release. | ||
|
||
git commit -am "Release $VERSION" | ||
git tag -a v$VERSION -m "Release $VERSION" | ||
|
||
4. Deploy to Sonatype: | ||
|
||
mvn clean deploy -P release | ||
|
||
5. Push to GitHub | ||
|
||
git push origin v$VERSION | ||
|
||
|
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