Skip to content

Commit dc97661

Browse files
committed
Add Checkstyle
1 parent e406056 commit dc97661

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<nexus-staging-maven.version>1.6.7</nexus-staging-maven.version>
2424
<build-helper-maven.version>3.0.0</build-helper-maven.version>
2525
<maven-compiler-plugin.version>3.10.0</maven-compiler-plugin.version>
26+
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
2627

2728
<!-- dependencies -->
2829
<protobuf.version>3.25.5</protobuf.version>
@@ -36,6 +37,8 @@
3637

3738
<!-- test dependencies -->
3839
<junit.version>5.8.2</junit.version>
40+
41+
<checkstyle.config.location>checkstyle.xml</checkstyle.config.location>
3942
</properties>
4043

4144
<licenses>
@@ -249,6 +252,23 @@
249252
</plugins>
250253
</build>
251254

255+
<reporting>
256+
<plugins>
257+
<plugin>
258+
<groupId>org.apache.maven.plugins</groupId>
259+
<artifactId>maven-checkstyle-plugin</artifactId>
260+
<version>3.6.0</version>
261+
<reportSets>
262+
<reportSet>
263+
<reports>
264+
<report>checkstyle</report>
265+
</reports>
266+
</reportSet>
267+
</reportSets>
268+
</plugin>
269+
</plugins>
270+
</reporting>
271+
252272
<dependencies>
253273
<dependency>
254274
<groupId>com.google.protobuf</groupId>

0 commit comments

Comments
 (0)