Added -Xdoclint:none parameter to javadoc on java 8 and later

Closes #23
This commit is contained in:
Eric 2016-08-19 12:35:17 +02:00
parent c8f4e8980e
commit ba4334407e

17
pom.xml
View File

@ -17,8 +17,22 @@
<maven.compiler.target>1.7</maven.compiler.target> <maven.compiler.target>1.7</maven.compiler.target>
<github.global.server>github</github.global.server> <github.global.server>github</github.global.server>
<javadoc.opts><!-- Only jdk 1.8 and later --></javadoc.opts>
</properties> </properties>
<profiles>
<profile>
<id>doclint-java8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<javadoc.opts>-Xdoclint:none</javadoc.opts>
</properties>
</profile>
</profiles>
<repositories> <repositories>
<repository> <repository>
<id>spigot-repo</id> <id>spigot-repo</id>
@ -66,6 +80,9 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version> <version>2.10.4</version>
<configuration>
<additionalparam>${javadoc.opts}</additionalparam>
</configuration>
<executions> <executions>
<execution> <execution>
<goals> <goals>