diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 3cb25e6d6e..ce13e5aa9f 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -28,8 +28,8 @@ jobs:
cache: maven
- name: Display build environment details
run: mvn --version
- - name: Build project against vanilla Error Prone
- run: mvn -T1C install
+ - name: Build project against vanilla Error Prone, compile Javadoc
+ run: mvn -T1C install javadoc:jar
- name: Build project with self-check against Error Prone fork
run: mvn -T1C clean verify -Perror-prone-fork -Pnon-maven-central -Pself-check -s settings.xml
- name: Remove installed project artifacts
diff --git a/pom.xml b/pom.xml
index 7b6ff131d4..96d6468e17 100644
--- a/pom.xml
+++ b/pom.xml
@@ -988,6 +988,13 @@
maven-javadoc-plugin
3.4.1
+
+ --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+
@@ -1012,7 +1019,6 @@
true
release
v@{project.version}
- false