Apache Lucene open-source search software
LUCENE-8768: Fix Javadocs build in Java 11
Uwe Schindlerf1911f82d56a
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex b4416fa40ff..9ef8b3a3e56 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -23,6 +23,10 @@ Bug fixes:* LUCENE-8663: NRTCachingDirectory.slowFileExists may open a file whileit's inaccessible. (Dawid Weiss)+Other++* LUCENE-8768: Fix Javadocs build in Java 11. (Namgyu Kim)+======================= Lucene 8.1.0 =======================API Changesdiff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex 14f590e403c..8d0c106e31b 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -179,6 +179,8 @@<property name="javadoc.charset" value="utf-8"/><property name="javadoc.dir" location="${common.dir}/build/docs"/><property name="javadoc.maxmemory" value="512m" />++ <!-- We must have the index disabled for releases, as Java 11 includes a javascript search engine with GPL license: --><property name="javadoc.noindex" value="true"/><!---TODO: Fix accessibility (order of H1/H2/H3 headings), see https://issues.apache.org/jira/browse/LUCENE-8729 -->@@ -2127,7 +2129,7 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}<sources /><classpath refid="javadoc.classpath"/>- <arg line="--release ${javac.release}"/>+ <arg line="--no-module-directories --release ${javac.release}"/><arg line="${javadoc.doclint.args}"/></javadoc><record name="@{destdir}/log_javadoc.txt" action="stop"/>@@ -2143,16 +2145,9 @@ ${ant.project.name}.test.dependencies=${test.classpath.list}<delete><fileset file="@{destdir}/log_javadoc.txt">- <or>- <not>- <containsregexp expression="\[javadoc\]\s*[1-9][0-9]*\s*warning"/>- </not>- <and>- <!-- allow 1 warning, if there is also a bootstrap warning generated by Java7 -->- <containsregexp expression="\[javadoc\]\s*warning.*bootstrap"/>- <containsregexp expression="\[javadoc\]\s*1\s*warning"/>- </and>- </or>+ <not>+ <containsregexp expression="\[javadoc\]\s*[1-9][0-9]*\s*warning"/>+ </not></fileset></delete>