Skip to content

Commit

Permalink
Update pom.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
bencodes07 authored May 20, 2024
1 parent 30ec390 commit 65a9072
Showing 1 changed file with 81 additions and 2 deletions.
83 changes: 81 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>
<maven.compiler.verbose>true</maven.compiler.verbose>
<spotbugs.version>4.7.3</spotbugs.version> <!-- Centralized SpotBugs version -->
<spotbugs.version>4.7.3</spotbugs.version>
<checkstyle.version>3.2.1</checkstyle.version>
<pmd.version>3.20.0</pmd.version>
<jacoco.version>0.8.8</jacoco.version>
</properties>

<distributionManagement>
Expand Down Expand Up @@ -65,7 +68,83 @@
</execution>
</executions>
</plugin>
<!-- Other plugins -->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.version}</version>
<configuration>
<configLocation>google_checks.xml</configLocation>
<encoding>UTF-8</encoding>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
<executions>
<execution>
<id>checkstyle</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>${pmd.version}</version>
<configuration>
<linkXRef>false</linkXRef>
<rulesets>
<ruleset>ruleset.xml</ruleset>
</rulesets>
<failOnViolation>true</failOnViolation>
</configuration>
<executions>
<execution>
<id>pmd</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>verify</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 65a9072

Please sign in to comment.