This document explains how to release a new Butterfly version.
- All instructions documented here are MacOS and bash specific. Adjust them accordingly if you use a different OS and/or shell.
- You must have:
- Admin rights to Butterfly GitHub repo.
- A Nexus Repository Manager account with access to PayPal artifacts.
- Working from master branch
- Set the new version in
build.gradle
- Run
./gradlew clean build
and make sure it succeeds - Run
./prepare_release.sh
- If
tests/sample-apps
has changed, perform the following- zip
tests/sample-apps/echo
folder - replace zip under
docs/zip
- update link in
docs/QUICK_START.md
if zip file name changed
- zip
- Add new version in
docs/RELEASE_NOTES.md
file - Commit
Releasing <new version>
- Push your changes (
git push upstream master
)
- Set the new version in
- Go to butterfly repo in GitHub
- Create a new release and tag from master branch
- New release title and tag name should be the new version
- Add sections
New Features and enhancements
andBug fixes
from release notes to Release description - Create the new release and make sure the GitHub action
Release Publishing
is automatically triggered and succeeds
- Create a new release and tag from master branch
- Manual sonatype release
- Go to Nexus Repository Manager
- Go to
Staging Repositories
- Close the butterfly staging repository
- Release the butterfly staging repository
- Wait a couple of hours and make sure new butterfly version shows at http://search.maven.org/#search|ga|1|g:com.paypal.butterfly
- Working from master branch
- Set the new SNAPSHOT version in
build.gradle
- Run
./gradlew clean build
and make sure it succeeds - Commit
Preparing for version <next new version>
- Push your changes (
git push upstream master
)
- Set the new SNAPSHOT version in