Only activate checkstyle (Java 8+) in Java 8+ build

This commit is contained in:
Sean Owen 2018-01-28 14:48:17 -06:00
parent 229e5e34db
commit 9a362fc159

18
pom.xml
View file

@ -117,10 +117,6 @@
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
@ -824,6 +820,20 @@
<module>zxing.appspot.com</module>
</modules>
</profile>
<profile>
<id>checkstyle</id>
<activation>
<jdk>[1.8,)</jdk> <!-- won't work with JDK 7 -->
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>