diff --git a/build.gradle b/build.gradle index 91e3ed1..337466e 100644 --- a/build.gradle +++ b/build.gradle @@ -69,19 +69,20 @@ task sourcesJar(type: Jar) { } task javadoc(type: Javadoc) { - source = android.sourceSets.main.java.srcDirs + options.charSet = 'UTF-8' + failOnError false + source = android.sourceSets.main.java.sourceFiles classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) - failOnError = false } task javadocJar(type: Jar, dependsOn: javadoc) { archiveClassifier.set('javadoc') - from javadoc.getDestinationDir() + from javadoc.destinationDir } artifacts { - archives javadocJar archives sourcesJar + archives javadocJar } afterEvaluate {