The following gradle configuration is not working
configurations {
jaxDoclet
}
android.libraryVariants.all { variant ->
task("generate${variant.name.capitalize()}Javadoc", type: Javadoc) {
description "Generates Javadoc for $variant.name."
source = variant.javaCompile.source
ext.androidJar = "${android.sdkDirectory}/platforms/${android.compileSdkVersion}/android.jar"
classpath = files(variant.javaCompile.classpath.files) + files(ext.androidJar)
options.docletpath = configurations.jaxDoclet.files.asType(List)
exclude '**/BuildConfig.java'
exclude '**/R.java'
options {
doclet "com.google.doclava.Doclava"
bootClasspath new File(System.getenv('JAVA_HOME') + "/jre/lib/rt.jar")
addStringOption "hdf project.name", project.name
addStringOption "federate android", "http://d.android.com/reference"
}
}
}
dependencies {
jaxDoclet 'com.google.doclava:doclava:1.0.6'
}
What steps will reproduce the problem?
1. Add above to android library module gradle build
2. Run the javadoc task --debug or -- stacktrace
3. See the error log output
What is the expected output? What do you see instead?
I expect the javadoc to be generated using the doclava doclet. I see no
javadoc html files generated.
Is there support for using gradle with doclava? If so, what am I doing wrong?
The error output is not very helpful and the javadoc.options file seems to pick
up all the correct dependencies to build. I can generate javadoc without
doclava so the variant is working when doclava is removed.
Original issue reported on code.google.com by jdONeill...@gmail.com on 17 Apr 2015 at 12:22
Original issue reported on code.google.com by
jdONeill...@gmail.com
on 17 Apr 2015 at 12:22