Gradle Plugins

Maintained by aalmiray

Summary

This is the unoffical plugin for Bintray.
It supports Maven & Ivy style uploads to Bintray Maven repositories, uploads to Generic Bintray repositories as well as signing of packages.

Website https://github.com/ysb33r/bintray
Author Schalk W. Cronjé
Version 1.3

Usage

buildscript {
    repositories {
        jcenter()
      }
      dependencies {
        classpath 'org.ysb33r.gradle:bintray:1.3'
      }
}

apply plugin: 'bintray-publish'
apply plugin : 'java'

// Publishing to Maven Repo using old-style maven
uploadArchives  {
    repositories {
 		bintrayMavenDeployer {
			username          'someBintrayUser'
            apiKey            'SomeBintrayUsersApiKey'
         	repoOwner         'ysb33r'
         	repoName          'grysb33r'
         	packageName       'someNewPackageToBePublished'
            description       'This is an example to simplifying bintray publishing'
            descUrl           'https://github.com/ysb33r/Gradle/blob/master/bintray/README.md'
            tags              'gradle','bintray'
       }
    }
}

// Publishing to a generic repository
import org.ysb33r.gradle.bintray.BintrayGenericUpload
task uploadArchives (type:BintrayGenericUpload ) {
    username    'someBintrayUser'
    apiKey      'SomeBintrayUsersApiKey'
    repoOwner   'ysb33r'
    repoName    'nanook'
    packageName 'someNewPackageToBePublished'

    // 'sources' can be called more than once
    sources "${buildDir}/distributions/${applicationName}-${version}.tar"
}