TAMAYA-219: Enable checkstyle analysis
This enables checkstyle analysis of the sandbox modules
but will not (at present) fail builds on style violations.
diff --git a/pom.xml b/pom.xml
index 17c6d2b..b49348b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -70,7 +70,7 @@
<asciidoctor.version>1.5.6</asciidoctor.version>
<asciidoctor-diagramm.version>1.2.1</asciidoctor-diagramm.version>
<asciidoctorj.version>1.5.6</asciidoctorj.version>
- <checkstyle.version>2.15</checkstyle.version>
+ <checkstyle.version>3.0.0</checkstyle.version>
<enforcer.version>3.0.0-M1</enforcer.version>
<gem.plugin>1.0.7</gem.plugin>
<sources.plugin>3.0.1</sources.plugin>
@@ -333,8 +333,8 @@
<version>${checkstyle.version}</version>
<executions>
<execution>
- <id>verify-style</id>
- <phase>process-classes</phase>
+ <id>checkstyle</id>
+ <phase>validate</phase>
<goals>
<goal>check</goal>
</goals>
@@ -343,6 +343,7 @@
<configuration>
<logViolationsToConsole>true</logViolationsToConsole>
<configLocation>checkstyle/style.xml</configLocation>
+ <failOnViolation>false</failOnViolation>
</configuration>
<dependencies>
@@ -354,7 +355,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
- <version>6.2</version>
+ <version>7.8</version>
<exclusions><!-- MCHECKSTYLE-156 -->
<exclusion>
<groupId>com.sun</groupId>
@@ -818,6 +819,10 @@
</archive>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-checkstyle-plugin</artifactId>
+ </plugin>
</plugins>
</build>