[gradle] Add fix for javadoc search

This commit is contained in:
Florian Schmaus 2020-06-28 17:42:01 +02:00
parent bc503c7475
commit 0eeb89409a
1 changed files with 7 additions and 0 deletions

View File

@ -259,6 +259,13 @@ allprojects {
if (JavaVersion.current().isJava9Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('-release', javaMajor)
// Fix for javadoc search. If not set, the search result would direct to
// javadoc/undefined/org/jivesoftware/smack/altconnections/HttpLookupMethod.html
// instead of
// javadoc/org/jivesoftware/smack/altconnections/HttpLookupMethod.html
// https://stackoverflow.com/a/53732633/194894
options.addBooleanOption("-no-module-directories", true)
}
tasks.withType(JavaCompile) {
options.compilerArgs.addAll([