1 apply plugin: 'com.jfrog.bintray'
3 version = libraryVersion
5 if (project.hasProperty("android")) { // Android libraries
6 task sourcesJar(type: Jar) {
8 from android.sourceSets.main.java.srcDirs
11 // task javadoc(type: Javadoc) {
12 // source = android.sourceSets.main.java.srcDirs
13 // classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
15 } else { // Java libraries
16 task sourcesJar(type: Jar, dependsOn: classes) {
17 classifier = 'sources'
18 from sourceSets.main.allSource
22 //task javadocJar(type: Jar, dependsOn: javadoc) {
23 // classifier = 'javadoc'
24 // from javadoc.destinationDir
33 Properties properties = new Properties()
34 properties.load(project.rootProject.file('local.properties').newDataInputStream())
37 user = properties.getProperty("bintray.user")
38 key = properties.getProperty("bintray.apikey")
40 configurations = ['archives']
44 desc = libraryDescription
47 licenses = allLicenses
49 publicDownloadNumbers = true
51 desc = libraryDescription
53 sign = true //Determines whether to GPG sign the files. The default is false
54 passphrase = properties.getProperty("bintray.gpg.password")
55 //Optional. The passphrase for GPG signing'