Here is what I’m doing:
task androidJavadocs(type: Javadoc) {
failOnError = false
classpath += project.files(android.plugin.getBootClasspath().join(File.pathSeparator))
println "Javadoc classpath: " + classpath.asPath
FileCollection publicSource = files(‘src/com/example/Class1.java’,
‘src/com/example/Class2.java’)
include(copySpec {
from ‘source’
into ‘destination’
include { it.file in publicSource }
})
println "Javadoc sources: " + source.asPath
}
What is wrong with this?