From 9ee16bc5cc43899bae997c5c48a72a664e7f44d3 Mon Sep 17 00:00:00 2001 From: Lai Jiang Date: Fri, 2 Dec 2022 13:37:56 -0500 Subject: [PATCH] Fix javadoc build (#1866) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With newer versions of Java 11, javadoc fails to build due to unknown tags in package-info.java files. These files are not important so we exclude them. - - - This change is [Reviewable](https://reviewable.io/reviews/google/nomulus/1866) --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 672a0fb42..b83a3c33b 100644 --- a/build.gradle +++ b/build.gradle @@ -528,6 +528,10 @@ task javaIncrementalFormatApply { task javadoc(type: Javadoc) { source javadocSource + // Java 11.0.17 has the following bug that affects annotation handling on + // package-info.java: + // https://bugs.openjdk.org/browse/JDK-8222091 + exclude "**/package-info.java" classpath = files(javadocClasspath) destinationDir = file("${buildDir}/docs/javadoc") options.encoding = "UTF-8"