Deploying publications to Bintray

Before we can run the bintrayUpload task, we must add some configuration to our Gradle build file. The Bintray plugin can be configured with the bintray configuration block. Inside this configuration block, we see all the properties needed to deploy our project's publications to Bintray.

First, we need to set the username and the API key for the Bintray account we are using to deploy with. To get the API key, we must first log in to Bintray in our web browser. From our account page, we click on the Edit button. Next, we will select the API menu option to get to our API key. The key can then be copied to the clipboard so that we can use it in our build script. The user and key properties from the bintray configuration ...

Get Gradle Dependency Management now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.