Skip to content

Commit ca18ef8

Browse files
authored
Update pom.xml
1 parent ae3b9d1 commit ca18ef8

File tree

1 file changed

+29
-38
lines changed

1 file changed

+29
-38
lines changed

pom.xml

Lines changed: 29 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
21
<project xmlns="http://maven.apache.org/POM/4.0.0"
32
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
43
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5-
4+
65
<modelVersion>4.0.0</modelVersion>
76
<groupId>com.thealgorithms</groupId>
87
<artifactId>Java</artifactId>
98
<version>1.0-SNAPSHOT</version>
10-
<packaging>jar</packaging>
119

1210
<properties>
1311
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -44,6 +42,12 @@
4442
<version>${assertj.version}</version>
4543
<scope>test</scope>
4644
</dependency>
45+
<dependency>
46+
<groupId>org.junit.jupiter</groupId>
47+
<artifactId>junit-jupiter-api</artifactId>
48+
<version>${junit.version}</version>
49+
<scope>test</scope>
50+
</dependency>
4751
<dependency>
4852
<groupId>org.apache.commons</groupId>
4953
<artifactId>commons-lang3</artifactId>
@@ -58,69 +62,56 @@
5862

5963
<build>
6064
<plugins>
61-
<plugin>
62-
<artifactId>maven-surefire-plugin</artifactId>
63-
<version>3.5.1</version>
64-
</plugin>
6565
<plugin>
6666
<groupId>org.apache.maven.plugins</groupId>
6767
<artifactId>maven-compiler-plugin</artifactId>
68-
<version>3.13.0</version>
68+
<version>3.10.1</version>
6969
<configuration>
70-
<source>21</source>
71-
<target>21</target>
70+
<source>${maven.compiler.source}</source>
71+
<target>${maven.compiler.target}</target>
7272
<compilerArgs>
7373
<arg>-Xlint:all</arg>
74+
<arg>-Xlint:-auxiliaryclass</arg>
75+
<arg>-Xlint:-rawtypes</arg>
76+
<arg>-Xlint:-unchecked</arg>
77+
<arg>-Xlint:-lossy-conversions</arg>
7478
<arg>-Werror</arg>
7579
</compilerArgs>
7680
</configuration>
7781
</plugin>
7882
<plugin>
79-
<groupId>org.jacoco</groupId>
80-
<artifactId>jacoco-maven-plugin</artifactId>
81-
<version>0.8.12</version>
82-
<executions>
83-
<execution>
84-
<goals>
85-
<goal>prepare-agent</goal>
86-
</goals>
87-
</execution>
88-
<execution>
89-
<id>generate-code-coverage-report</id>
90-
<phase>test</phase>
91-
<goals>
92-
<goal>report</goal>
93-
</goals>
94-
</execution>
95-
</executions>
96-
</plugin>
97-
<plugin>
98-
<groupId>org.apache.maven.plugins</groupId>
99-
<artifactId>maven-checkstyle-plugin</artifactId>
100-
<version>3.5.0</version>
83+
<artifactId>maven-surefire-plugin</artifactId>
84+
<version>3.5.1</version>
10185
<configuration>
102-
<configLocation>checkstyle.xml</configLocation>
103-
<consoleOutput>true</consoleOutput>
104-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
105-
<violationSeverity>warning</violationSeverity>
86+
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
10687
</configuration>
10788
</plugin>
10889
<plugin>
10990
<groupId>com.github.spotbugs</groupId>
11091
<artifactId>spotbugs-maven-plugin</artifactId>
111-
<version>4.8.6.4</version>
92+
<version>4.7.0</version>
11293
<configuration>
11394
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
11495
<includeTests>true</includeTests>
11596
</configuration>
11697
</plugin>
98+
<plugin>
99+
<groupId>com.puppycrawl.tools</groupId>
100+
<artifactId>checkstyle-maven-plugin</artifactId>
101+
<version>10.18.2</version>
102+
<configuration>
103+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
104+
<violationSeverity>warning</violationSeverity>
105+
</configuration>
106+
</plugin>
117107
<plugin>
118108
<groupId>org.apache.maven.plugins</groupId>
119109
<artifactId>maven-pmd-plugin</artifactId>
120-
<version>3.25.0</version>
110+
<version>3.15.0</version>
121111
<configuration>
122112
<printFailingErrors>true</printFailingErrors>
123113
<includeTests>true</includeTests>
114+
<linkXRef>false</linkXRef>
124115
</configuration>
125116
</plugin>
126117
</plugins>

0 commit comments

Comments
 (0)