mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
[gradle] Add fix for javadoc search
This commit is contained in:
parent
bc503c7475
commit
049d687778
1 changed files with 7 additions and 0 deletions
|
@ -259,6 +259,13 @@ allprojects {
|
||||||
if (JavaVersion.current().isJava9Compatible()) {
|
if (JavaVersion.current().isJava9Compatible()) {
|
||||||
tasks.withType(Javadoc) {
|
tasks.withType(Javadoc) {
|
||||||
options.addStringOption('-release', javaMajor)
|
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) {
|
tasks.withType(JavaCompile) {
|
||||||
options.compilerArgs.addAll([
|
options.compilerArgs.addAll([
|
||||||
|
|
Loading…
Reference in a new issue