Created
June 9, 2016 10:27
-
-
Save jakub-bochenski/3e3b2acd0c01ecd884e2d0e4413cb56f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>google-checkstyle-demo</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-checkstyle-plugin</artifactId> | |
<version>2.17</version> | |
<dependencies> | |
<dependency> | |
<groupId>com.puppycrawl.tools</groupId> | |
<artifactId>checkstyle</artifactId> | |
<version>6.17</version> | |
</dependency> | |
</dependencies> | |
<executions> | |
<execution> | |
<id>checkstyle</id> | |
<goals> | |
<goal>check</goal> | |
</goals> | |
<phase>validate</phase> | |
<configuration> | |
<configLocation>${basedir}/src/test/google_checks.xml</configLocation> | |
<failOnViolation>true</failOnViolation> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>checkstyle-verbose</id> | |
<activation> | |
<property> | |
<name>env.JENKINS_SERVER_COOKIE</name> | |
</property> | |
</activation> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<artifactId>maven-checkstyle-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>checkstyle</id> | |
<configuration> | |
<consoleOutput>true</consoleOutput> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment