@@ -27,25 +27,9 @@ fun Project.configureJavadoc(
2727 val effectiveJdkDocsVersion = max(11 , targetVersion.majorVersion.toInt())
2828 links(" https://docs.oracle.com/en/java/javase/${effectiveJdkDocsVersion} /docs/api/" , " https://takahikokawasaki.github.io/nv-websocket-client/" )
2929
30- val javaVersion = JavaVersion .current()
31- if (JavaVersion .VERSION_1_8 < javaVersion) {
32- addBooleanOption(" html5" , true ) // Adds search bar
33- addStringOption(" -release" , targetVersion.majorVersion)
34- }
35-
36- // Fix for https://stackoverflow.com/questions/52326318/maven-javadoc-search-redirects-to-undefined-url
37- if (javaVersion in JavaVersion .VERSION_11 .. JavaVersion .VERSION_12 ) {
38- addBooleanOption(" -no-module-directories" , true )
39- }
40-
41- // Java 13 changed accessibility rules.
42- // On versions less than Java 13, we simply ignore the errors.
43- // Both of these remove "no comment" warnings.
44- if (javaVersion >= JavaVersion .VERSION_13 ) {
45- addBooleanOption(" Xdoclint:all,-missing" , true )
46- } else {
47- addBooleanOption(" Xdoclint:all,-missing,-accessibility" , true )
48- }
30+ addBooleanOption(" html5" , true ) // Adds search bar
31+ addStringOption(" -release" , targetVersion.majorVersion)
32+ addBooleanOption(" Xdoclint:all,-missing" , true )
4933
5034 overview = overviewFile
5135 }
0 commit comments