This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git
commit 513120d67e0920e2289a338877caee7b9319364b Author: lburgazzoli <lburgazz...@gmail.com> AuthorDate: Tue Jun 25 13:30:18 2019 +0200 Add checstyle #87 --- pom.xml | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/pom.xml b/pom.xml index 9d1775a..a1238dd 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,8 @@ <directory-maven-plugin.version>0.3.1</directory-maven-plugin.version> <exec-maven-plugin.version>1.6.0</exec-maven-plugin.version> <mycila-license.version>3.0</mycila-license.version> + <maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version> + <maven-checkstyle.version>7.6.1</maven-checkstyle.version> </properties> <developers> @@ -135,6 +137,46 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + <version>${maven-checkstyle-plugin.version}</version> + <dependencies> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-buildtools</artifactId> + <version>${camel.version}</version> + </dependency> + <dependency> + <groupId>com.puppycrawl.tools</groupId> + <artifactId>checkstyle</artifactId> + <version>${maven-checkstyle.version}</version> + </dependency> + </dependencies> + <executions> + <execution> + <id>default-cli</id> + <phase>validate</phase> + <configuration> + <includeResources>false</includeResources> + <configLocation>camel-checkstyle.xml</configLocation> + <consoleOutput>true</consoleOutput> + <failsOnError>${checkstyle.failOnViolation}</failsOnError> + <linkXRef>false</linkXRef> + <suppressionsLocation>camel-checkstyle-suppressions.xml</suppressionsLocation> + <encoding>UTF-8</encoding> + <sourceDirectories> + <sourceDirectory>${basedir}/src</sourceDirectory> + </sourceDirectories> + <headerLocation>header-java.txt</headerLocation> + <includes>**/*.java,**/*.groovy,**/*.scala,**/*.properties,**/*.xml,**/*.xsd</includes> + </configuration> + <goals> + <goal>checkstyle</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </pluginManagement> </build> @@ -437,5 +479,16 @@ </plugins> </build> </profile> + <profile> + <id>sourcecheck</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-checkstyle-plugin</artifactId> + </plugin> + </plugins> + </build> + </profile> </profiles> </project>