chrisbanes / gradle-mvn-push

Helper to upload Gradle Android Artifacts to Maven repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Javadoc generation fails w/ dependency on android support library

jacobtabak opened this issue · comments

I was unable to generate javadocs in a library project that had a gradle dependency on the Android support lib.

Did some googling and found that adding this to my build script resolved the issue. Would be great to add it to the documentation.

afterEvaluate {
    androidJavadocs.classpath += project.android.libraryVariants.toList().first().javaCompile.classpath
}

This is with gradle plugin 0.12.2 and gradle version 1.12

Happens here too!

I had to add failOnError = false inside task androidJavadocs

I fixed that by adding to the root gradle inside the allprojects object

allprojects {
    tasks.withType(Javadoc) {
        options.addStringOption('Xdoclint:none', '-quiet')
        options.addStringOption('encoding', 'UTF-8')
        options.addStringOption('charSet', 'UTF-8')
    }
}

and it works without having to failOnError = false

@jacobtabak @danielgindi @budius It will work with https://github.com/Vorlonsoft/GradleMavenPush. Please read README.md before use it.