Skip to content

Commit 0ca9df7

Browse files
committed
fix #174--my previous fix for #119 made Java 8 work but broke prior versions of Java which don't recognize the -Xdoclint flag
1 parent 4e75d8a commit 0ca9df7

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

pom.xml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@
4545
<show>public</show>
4646
<doctitle>${javadoc-title}</doctitle>
4747
<use/>
48-
<!-- Disable Java 8 overly strict javadoc linter
49-
http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html
50-
-->
51-
<additionalparam>-Xdoclint:none</additionalparam>
5248
</configuration>
5349
<executions>
5450
<execution>
@@ -165,6 +161,20 @@
165161
</plugin>
166162
</plugins>
167163
</build>
164+
<profiles>
165+
<profile>
166+
<id>Java 8</id>
167+
<activation>
168+
<jdk>1.8</jdk>
169+
</activation>
170+
<properties>
171+
<!-- Disable Java 8 overly strict javadoc linter when building with Java 8
172+
http://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html
173+
-->
174+
<additionalparam>-Xdoclint:none</additionalparam>
175+
</properties>
176+
</profile>
177+
</profiles>
168178
<dependencies>
169179
<!-- direct build / run dependencies -->
170180
<!--

0 commit comments

Comments
 (0)