Skip to content

Commit ededa6f

Browse files
committed
Only run Checkstyle for JDK11+ to avoid build issues on JDK8
1 parent d1516a0 commit ededa6f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

pom.xml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,6 @@
325325
<artifactId>maven-source-plugin</artifactId>
326326
</plugin>
327327

328-
<plugin>
329-
<groupId>org.apache.maven.plugins</groupId>
330-
<artifactId>maven-checkstyle-plugin</artifactId>
331-
</plugin>
332-
333328
<plugin>
334329
<groupId>org.apache.maven.plugins</groupId>
335330
<artifactId>maven-site-plugin</artifactId>
@@ -761,6 +756,20 @@
761756
</reporting>
762757

763758
<profiles>
759+
<profile>
760+
<id>checkstyle-activation</id>
761+
<activation>
762+
<jdk>[11,)</jdk>
763+
</activation>
764+
<build>
765+
<plugins>
766+
<plugin>
767+
<groupId>org.apache.maven.plugins</groupId>
768+
<artifactId>maven-checkstyle-plugin</artifactId>
769+
</plugin>
770+
</plugins>
771+
</build>
772+
</profile>
764773
<profile>
765774
<id>apache-release</id>
766775
<build>

0 commit comments

Comments
 (0)