File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 128128 </execution >
129129 </executions >
130130 </plugin >
131- <plugin >
132- <groupId >org.apache.maven.plugins</groupId >
133- <artifactId >maven-checkstyle-plugin</artifactId >
134- <version >3.6.0</version >
135- <configuration >
136- <consoleOutput >true</consoleOutput >
137- <configLocation >checkstyle.xml</configLocation >
138- <violationSeverity >warning</violationSeverity >
139- </configuration >
140- <dependencies >
141- <dependency >
142- <groupId >com.puppycrawl.tools</groupId >
143- <artifactId >checkstyle</artifactId >
144- <version >12.3.1</version >
145- </dependency >
146- </dependencies >
147- <executions >
148- <execution >
149- <id >test</id >
150- <phase >test</phase >
151- <goals >
152- <goal >check</goal >
153- </goals >
154- </execution >
155- </executions >
156- </plugin >
157131 <plugin >
158132 <groupId >org.apache.maven.plugins</groupId >
159133 <artifactId >maven-site-plugin</artifactId >
370344 </plugins >
371345 </build >
372346 </profile >
347+ <!-- Checkstyle 13+ requires Java 21+. -->
348+ <profile >
349+ <id >checkstyle-jdk21</id >
350+ <activation >
351+ <jdk >[21,)</jdk >
352+ </activation >
353+ <build >
354+ <plugins >
355+ <plugin >
356+ <groupId >org.apache.maven.plugins</groupId >
357+ <artifactId >maven-checkstyle-plugin</artifactId >
358+ <version >3.6.0</version >
359+ <configuration >
360+ <consoleOutput >true</consoleOutput >
361+ <configLocation >checkstyle.xml</configLocation >
362+ <violationSeverity >warning</violationSeverity >
363+ </configuration >
364+ <dependencies >
365+ <dependency >
366+ <groupId >com.puppycrawl.tools</groupId >
367+ <artifactId >checkstyle</artifactId >
368+ <version >13.0.0</version >
369+ </dependency >
370+ </dependencies >
371+ <executions >
372+ <execution >
373+ <id >checkstyle</id >
374+ <phase >test</phase >
375+ <goals >
376+ <goal >check</goal >
377+ </goals >
378+ </execution >
379+ </executions >
380+ </plugin >
381+ </plugins >
382+ </build >
383+ </profile >
373384 </profiles >
374385</project >
You can’t perform that action at this time.
0 commit comments