Skip to content

Commit

Permalink
Disable javadoc linting when building with JDK 8+
Browse files Browse the repository at this point in the history
Java 8 introduced new, aggressive linting of javadoc that’s enabled by
default. The linter isn’t sufficiently configurable to allow us to tune
it to meet the project’s conventions for javadoc so our only realistic
option is to disable linting.

This commit introduces a new profile to disable javadoc linting. To
maintain compatibility with JDK 7, the profile is only active when the
build’s running on JDK 8 or later.

Closes spring-projectsgh-2233
  • Loading branch information
wilkinsona committed Jan 19, 2015
1 parent dc501df commit 78432fc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spring-boot-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,9 @@
<goal>jar</goal>
</goals>
<inherited>true</inherited>
<configuration>
<additionalparam>${javadoc.opts}</additionalparam>
</configuration>
</execution>
</executions>
</plugin>
Expand All @@ -588,6 +591,15 @@
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>disable-java8-doclint</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<javadoc.opts>-Xdoclint:none</javadoc.opts>
</properties>
</profile>
<profile>
<id>snapshot</id>
</profile>
Expand Down

0 comments on commit 78432fc

Please sign in to comment.