// build a jar with source files task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs classifier = 'sources' } task javadoc(type: Javadoc) { failOnError false source = android.sourceSets.main.java.sourceFiles classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) classpath += configurations.compile } // build a jar with javadoc task javadocJar(type: Jar, dependsOn: javadoc) { classifier = 'javadoc' from javadoc.destinationDir } artifacts { archives sourcesJar archives javadocJar } // //bintray { // user = System.getenv('BINTRAY_USER') // key = System.getenv('BINTRAY_API_KEY') // // dryRun = false // publish = true // // publications = ['MyPublication'] // pkg { // repo = 'maven' // name = "$ext_artifactId" // licenses = ['Apache-2.0'] // labels = ['android', 'gradle-plugin'] // // publicDownloadNumbers = true // vcsUrl = "$ext_vcsUrl" // // version { // name = "$ext_version" // desc = "$ext_description" // released = new Date() // gpg { // sign = true // Determines whether to GPG sign the files. // } // } // } //}