Browse Source

HADOOP-15902. [JDK 11] Specify the HTML version of Javadoc to 4.01. Contributed by Takanobu Asanuma.

Akira Ajisaka 6 years ago
parent
commit
78e43bccf6
1 changed files with 20 additions and 0 deletions
  1. 20 0
      hadoop-project/pom.xml

+ 20 - 0
hadoop-project/pom.xml

@@ -2002,6 +2002,26 @@
         </dependencies>
         </dependencies>
       </dependencyManagement>
       </dependencyManagement>
     </profile>
     </profile>
+    <profile>
+      <!-- TODO: remove this profile to generate html5 docs when we stop supporting JDK8 -->
+      <id>javadoc-html-version</id>
+      <activation>
+        <jdk>[11,)</jdk>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <configuration>
+              <additionalOptions>
+                <additionalOption>-html4</additionalOption>
+              </additionalOptions>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
   </profiles>
   </profiles>
 
 
   <repositories>
   <repositories>