based on https://raw.githubusercontent.com/firebase/FirebaseUI-Android/master/library/PUBLISHING.md
utilised https://inthecheesefactory.com/blog/how-to-upload-library-to-jcenter-maven-central-as-dependency/en
In order to publish to your local maven repository, run the following command:
./gradlew library:prepareArtifacts :library:publishAllToMavenLocal
If you would like to specify a custom local maven repo location, run the following command, changing
the value of the custom_local property to your desired location. The default value for
custom_local is /tmp/.
./gradlew -Pcustom_local=<YOUR_MAVEN_REPO> :library:prepareArtifacts :library:publishAllToCustomLocal
This will publish all of the artfiacts (as drafts) to Bintray. You will need
the environment variables BINTRAY_USER and BINTRAY_KEY defined appropriately.
Increment the constants.gradle version.
./gradlew clean library:prepareArtifacts :library:bintrayUploadAll