Skip to content

Commit 7688eb9

Browse files
committed
[MCHECKSTYLE-387] emit a warning when using an old version of checkstyle.
Signed-off-by: Benjamin Marwell <[email protected]>
1 parent 91b8b16 commit 7688eb9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/apache/maven/plugins/checkstyle/exec/DefaultCheckstyleExecutor.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,13 @@ public URLClassLoader run()
313313
try
314314
{
315315
checker.setClassLoader( projectClassLoader );
316+
/*
317+
* MCHECKSTYLE-387: If the previous method call was successful, emit a warning that the user is using
318+
* an old version of checkstyle.
319+
*/
320+
getLogger().warn( "Old version of checkstyle detected. Consider updating to >= v8.30" );
321+
getLogger().warn( "For more information see: "
322+
+ "https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/upgrading-checkstyle.html" );
316323
}
317324
catch ( NoSuchMethodError ignored )
318325
{

0 commit comments

Comments
 (0)