Skip to content

Apache Lucene open-source search software

Render javadocs for all projects, even if they're not part of site.

Dawid Weiss1a429c621e7a
diff --git a/gradle/documentation/render-javadoc.gradle b/gradle/documentation/render-javadoc.gradle
index 55aa9b570ac..e4a4f28e293 100644
--- a/gradle/documentation/render-javadoc.gradle
+++ b/gradle/documentation/render-javadoc.gradle
@@ -58,7 +58,11 @@ allprojects {
}
if (project.path == ':lucene:luke' || project.path.endsWith(".tests")) {
- // Do nothing, these projects are not part of the public API.
+ // These projects are not part of the public API so we don't render their javadocs
+ // as part of the site's creation. A side-effect of this is that javadocs would not
+ // be linted for these projects. To avoid this, we connect the regular javadoc task
+ // to check so that everything is validated.
+ project.tasks.getByName("check").dependsOn renderJavadoc
} else {
task renderSiteJavadoc(type: RenderJavadocTask) {
description "Generates Javadoc API documentation for the site (relative links)."