gradle-bintray-plugin /

Filename Size Date modified Message
106 B
47 B
5.4 KB
201 B
9.9 KB
3.2 KB
1.3 KB
265 B
5.0 KB
2.3 KB


The Bintray plugin is a Gradle plugin to allow easier use of Bintray repositories. It is available for use under the Apache License, Version 2.0. If you have any issues, please check the issue tracker, and if there isn't anything relevant, submit a new issue.


If you aren't already using the Gradle Wrapper, start now. It makes it easy for people using your project to build with Gradle without requiring Gradle to be installed ahead of time, as well as providing an easy way to encourage use of the intended version of Gradle.

To use the Bintray plugin:

  • Download "Bintray.gradle" into the gradle directory created by the Gradle Wrapper based on one of the download links below.
  • Configure your build.gradle based on the example below. Depending on your codebase (multi-project, etc.) you may need to tweak the path a little.


buildscript {
    apply from: 'gradle/Bintray.gradle'

Note that the apply statement MUST be in the buildscript block and before any bintray repository definitions in order to work as intended. If you apply the script outside of the buildscript block, the bintray extension to the buildscript RepositoryHandler will not be registered in time for use resolving buildscript dependencies.

Creating this plugin required the usage of Gradle internal APIs which may not be stable across versions. Below is a matrix of tested compatible versions. In general, it's best to use the latest version that's shown as tested with your version of Gradle.

Gradle Version Plugin Version
1.4 0.1.0

You can get the latest development version here.


The plugin adds special syntax in repositories blocks to declare Bintray repositories.


Bintray-owned repositories (such as the JCenter repository) allow anonymous downloads via Gradle, but others don't. For them, you'll need to configure authentication. The recommended method is to add bintrayUserName and bintrayApiKey properties to your file, based on the example below:

bintrayUserName = joe
bintrayApiKey = 1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef

Configuration Example

repositories {
    bintray.jcenter() // Bintray-owned, allows anonymous access
    bintray.repo(repoOwner: 'davidmc24', repoName: 'gradle-plugins') // Uses credentials from
    bintray.repo(repoOwner: 'WowCorp', repoName: 'AmazingSoftware') {
        credentials {
            username = 'joe'
            password = '1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.