Releasing the library - novoda/sqlite-provider GitHub Wiki

Releasing to bintray

The project can be released from the CI by triggering a manual build and checking the MANUAL_PUBLISH box:

That value is set to false by default so every time a PR is merged it won't publish to bintray, it will only publish when the build is triggered manually and the checkbox is checked.

How it works

The Job configuration on the CI already contains the credentials to publish to bintray so you don't have to worry about it. The task that must be used to deploy is publishReleaseToBintray. This task runs both generateRelease and bintrayUpload, this means all the necessary files to publish to a maven repo will be generated first and then the bintray upload will be executed which will publish the new version of the library.

Credentials

In order to release we use hal's credentials in bintray (using Github login), which are passed in as command line parameter in the CI.