Skip to content

Commit f782651

Browse files
author
TheSnoozer
committed
using maven's profile activation to use an older checkstyle version for java7 - with checkstyle 7.0 the support for java7 was dropped - also note this sets only the checkstyle.version and if for some random maven reason the default action does not work it **only** fails for checkstyle...do not use anywhere else...
1 parent 9abb063 commit f782651

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pom.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,16 @@
419419
</plugins>
420420
</build>
421421
</profile>
422+
<profile>
423+
<id>checkstyleWithJdk17</id>
424+
<activation>
425+
<jdk>1.7</jdk>
426+
</activation>
427+
<properties>
428+
<!-- if you update the checkstyle version make sure you update the google_checks.xml inside the repository -->
429+
<checkstyle.version>6.11.2</checkstyle.version>
430+
</properties>
431+
</profile>
422432
<profile>
423433
<id>checkstyle</id>
424434
<properties>

0 commit comments

Comments
 (0)