chrisbanes / gradle-mvn-push

Helper to upload Gradle Android Artifacts to Maven repositories
Apache License 2.0
1.05k stars 283 forks source link

Javadoc generation fails w/ dependency on android support library #39

Open jacobtabak opened 9 years ago

jacobtabak commented 9 years ago

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

danielgindi commented 8 years ago

Happens here too!

I had to add failOnError = false inside task androidJavadocs

budius commented 7 years ago

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

AlexanderLS commented 6 years ago

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

danielgindi commented 6 years ago

Thank you @AlexanderLS