Publish a new Main release to Maven Central
masterTo publish a new version of DeepLinkDispatch to Maven Central, follow these steps:
- Update the version in
gradle.propertiesto a non-SNAPSHOT version (e.g.,X.Y.Z). - Commit the version change:
git commit -am "Prepare for release X.Y.Z." - Tag the release:
git tag -a X.Y.Z -m "Version X.Y.Z" - Configure Sonatype credentials (
mavenCentralUsernameandmavenCentralPassword) in your local usergradle.properties. - Ensure a GPG signing key is configured.
- Execute the publish command:
./gradlew publishAllPublicationsToMavenCentral - Revert
gradle.propertiesto the next SNAPSHOT version. - Commit the change:
git commit -am "Prepare next development version." - Push changes and tags:
git push && git push --tags - Merge to master and create a GitHub release.