1*83a54b2fSSadaf EbrahimiTo publish: 2*83a54b2fSSadaf Ebrahimi 3*83a54b2fSSadaf Ebrahimi- ./gradlew bintrayUpload will upload the release to JCenter. It will fail if the version is a SNAPSHOT 4*83a54b2fSSadaf Ebrahimi- ./gradlew uploadArchives will upload 5*83a54b2fSSadaf Ebrahimi - the snapshot to https://oss.sonatype.org/content/repositories/snapshots 6*83a54b2fSSadaf Ebrahimi - the release to https://oss.sonatype.org/service/local/staging/deploy/maven2 7*83a54b2fSSadaf EbrahimiFor a release, you then need to go to https://oss.sonatype.org/index.html#stagingRepositories to manually close and release the distribution. 8*83a54b2fSSadaf Ebrahimi 9*83a54b2fSSadaf EbrahimiNote that `./gradlew uploadArchives` is run by Travis after each new push to deploy the latest HEAD to the snapshot directory. As such, the version number of `build.gradle` in the git repo should always be -SNAPSHOT. 10