Enable doclint and fail build on javadoc errors

This commit is contained in:
Andreas Dangel
2024-03-07 21:18:46 +01:00
parent 8758dbb85c
commit 1b53d71a19

View File

@ -369,7 +369,8 @@
<version>${javadoc.plugin.version}</version> <version>${javadoc.plugin.version}</version>
<configuration> <configuration>
<quiet>true</quiet> <quiet>true</quiet>
<doclint>none</doclint> <doclint>all</doclint>
<failOnError>true</failOnError>
<!-- exclude any internal package and up to two sub-packages inside --> <!-- exclude any internal package and up to two sub-packages inside -->
<excludePackageNames>*.internal,*.internal.*,*.internal.*.*</excludePackageNames> <excludePackageNames>*.internal,*.internal.*,*.internal.*.*</excludePackageNames>
<detectOfflineLinks>false</detectOfflineLinks> <detectOfflineLinks>false</detectOfflineLinks>
@ -1163,7 +1164,7 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<configuration> <configuration>
<doclint>all</doclint> <failOnWarnings>true</failOnWarnings>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>