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 block contain information that we don't want to share. It is best to keep the values of these properties externalized from our Gradle build file. We can add a gradle.properties
file to our project directory with the values for the properties...