This is an automated email from the ASF dual-hosted git repository.
bmarwell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-checkstyle-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 7688eb9 [MCHECKSTYLE-387] emit a warning when using an old version of
checkstyle.
7688eb9 is described below
commit 7688eb9a621ff4932710339988fcd29e9c00d767
Author: Benjamin Marwell <[email protected]>
AuthorDate: Thu Feb 27 06:51:54 2020 +0100
[MCHECKSTYLE-387] emit a warning when using an old version of checkstyle.
Signed-off-by: Benjamin Marwell <[email protected]>
---
.../maven/plugins/checkstyle/exec/DefaultCheckstyleExecutor.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/src/main/java/org/apache/maven/plugins/checkstyle/exec/DefaultCheckstyleExecutor.java
b/src/main/java/org/apache/maven/plugins/checkstyle/exec/DefaultCheckstyleExecutor.java
index 4481506..94a01e0 100644
---
a/src/main/java/org/apache/maven/plugins/checkstyle/exec/DefaultCheckstyleExecutor.java
+++
b/src/main/java/org/apache/maven/plugins/checkstyle/exec/DefaultCheckstyleExecutor.java
@@ -313,6 +313,13 @@ public class DefaultCheckstyleExecutor
try
{
checker.setClassLoader( projectClassLoader );
+ /*
+ * MCHECKSTYLE-387: If the previous method call was successful,
emit a warning that the user is using
+ * an old version of checkstyle.
+ */
+ getLogger().warn( "Old version of checkstyle detected. Consider
updating to >= v8.30" );
+ getLogger().warn( "For more information see: "
+ +
"https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/upgrading-checkstyle.html"
);
}
catch ( NoSuchMethodError ignored )
{