jenkins-bot has submitted this change and it was merged.

Change subject: Turn of strict javadoc in java 8
......................................................................


Turn of strict javadoc in java 8

Java 8 has a way too strict checker for Javadoc.  And the command to turn it
off isn't available in older versions of Java.  So we turn it off in just
java 8 using a careful trick borrowed from dropwizard.

Change-Id: I76fadc45969549929b77d76e5b22e74e1170110c
---
M pom.xml
1 file changed, 12 insertions(+), 0 deletions(-)

Approvals:
  Manybubbles: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/pom.xml b/pom.xml
index 469f10a..b0e17a0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -202,6 +202,9 @@
               </goals>
               <configuration>
                 <quiet>true</quiet>
+                <!-- We don't want Java 8's strict javadoc checking so we use 
this trick borrowed from dropwizard to turn
+                  it off -->
+                <additionalparam>${javadoc.doclint.none}</additionalparam>
               </configuration>
             </execution>
           </executions>
@@ -360,5 +363,14 @@
         </pluginManagement>
       </build>
     </profile>
+    <profile>
+      <id>java-8</id>
+      <activation>
+        <jdk>[1.8,)</jdk>
+      </activation>
+      <properties>
+        <javadoc.doclint.none>-Xdoclint:none</javadoc.doclint.none>
+      </properties>
+    </profile>
   </profiles>
 </project>

-- 
To view, visit https://gerrit.wikimedia.org/r/201585
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I76fadc45969549929b77d76e5b22e74e1170110c
Gerrit-PatchSet: 2
Gerrit-Project: wikidata/query/rdf
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <never...@wikimedia.org>
Gerrit-Reviewer: Jdouglas <jdoug...@wikimedia.org>
Gerrit-Reviewer: Manybubbles <never...@wikimedia.org>
Gerrit-Reviewer: Smalyshev <smalys...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to