- Change the version in
gradle.properties
to a non-SNAPSHOT version. - Update the
CHANGELOG.md
for the impending release. - Update the
README.md
with the new version. git commit -am "Prepare for release X.Y.Z."
(where X.Y.Z is the new version)git tag -a X.Y.Z -m "Version X.Y.Z"
(where X.Y.Z is the new version)./gradlew clean publish
- Update the
gradle.properties
to the next SNAPSHOT version. git commit -am "Prepare next development version."
git push && git push --tags
- Visit Sonatype Nexus and promote the artifact.
- Visit the GitHub releases page and create a new release, copying the changelog from
CHANGELOG.md
. - Visit Maven Central Repository Search to check when the artifact is live. It may take a few hours.
If step 6 or 7 fails, drop the Sonatype repo, fix the problem, commit, and start again at step 5.
- Set up signatory credentials, or temporarily comment out the
signing
block ingradle/gradle-mvn-push.gradle
. - Run
./gradlew publishToMavenLocal
. - In the other project, add
mavenLocal()
as a repository (likely inallProjects.repositories
of the rootbuild.gradle
file). - Update
com.wealthfront:magellan:X.Y.Z
tocom.wealthfront:magellan-library:SNAPSHOT_VERSION
, whereSNAPSHOT_VERSION
is theVERSION_NAME
defined in this project's./gradle.properties
.