I am generating the Javadoc from my project with gradle, and I want to get in the Javadoc and also the private members.
In the command line, while running javadoc, you can use the -private flag to achieve that. But, how can I do that on my build.gradle?
I have my task in the next way:
task myJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
classpath = configurations.compile
destinationDir = file("./doc/")
}
I am sure that there is any "option" there for doing that, but I can't find it.
Found it!
It has to be set to a JavadocMemberLevel with options.memberLevel.
Task should look like that:
task myJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
options.memberLevel = JavadocMemberLevel.PRIVATE
classpath = configurations.compile
destinationDir = file("./doc/")
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With