Skip to content

Commit 60cd02f

Browse files
authored
Update pom.xml
1 parent ca18ef8 commit 60cd02f

File tree

1 file changed

+73
-27
lines changed

1 file changed

+73
-27
lines changed

pom.xml

Lines changed: 73 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
12
<project xmlns="http://maven.apache.org/POM/4.0.0"
23
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
34
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4-
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.thealgorithms</groupId>
77
<artifactId>Java</artifactId>
88
<version>1.0-SNAPSHOT</version>
9+
<packaging>jar</packaging>
910

1011
<properties>
1112
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1213
<maven.compiler.source>21</maven.compiler.source>
1314
<maven.compiler.target>21</maven.compiler.target>
14-
<assertj.version>3.26.3</assertj.version> <!-- Update version if necessary -->
15-
<junit.version>5.11.2</junit.version>
16-
<commons-lang3.version>3.17.0</commons-lang3.version>
17-
<commons-collections4.version>4.5.0-M2</commons-collections4.version>
15+
<assertj.version>3.26.3</assertj.version>
1816
</properties>
1917

2018
<dependencyManagement>
2119
<dependencies>
2220
<dependency>
2321
<groupId>org.junit</groupId>
2422
<artifactId>junit-bom</artifactId>
25-
<version>${junit.version}</version>
23+
<version>5.11.2</version>
2624
<type>pom</type>
2725
<scope>import</scope>
2826
</dependency>
@@ -33,7 +31,13 @@
3331
<dependency>
3432
<groupId>org.junit.jupiter</groupId>
3533
<artifactId>junit-jupiter</artifactId>
36-
<version>${junit.version}</version>
34+
<version>5.11.2</version>
35+
<scope>test</scope>
36+
</dependency>
37+
<dependency>
38+
<groupId>org.junit.jupiter</groupId>
39+
<artifactId>junit-jupiter-engine</artifactId>
40+
<version>5.11.2</version>
3741
<scope>test</scope>
3842
</dependency>
3943
<dependency>
@@ -42,33 +46,41 @@
4246
<version>${assertj.version}</version>
4347
<scope>test</scope>
4448
</dependency>
49+
4550
<dependency>
4651
<groupId>org.junit.jupiter</groupId>
4752
<artifactId>junit-jupiter-api</artifactId>
48-
<version>${junit.version}</version>
53+
<version>5.11.2</version>
4954
<scope>test</scope>
5055
</dependency>
5156
<dependency>
5257
<groupId>org.apache.commons</groupId>
5358
<artifactId>commons-lang3</artifactId>
54-
<version>${commons-lang3.version}</version>
59+
<version>3.17.0</version>
5560
</dependency>
5661
<dependency>
5762
<groupId>org.apache.commons</groupId>
5863
<artifactId>commons-collections4</artifactId>
59-
<version>${commons-collections4.version}</version>
64+
<version>4.5.0-M2</version>
6065
</dependency>
6166
</dependencies>
6267

6368
<build>
6469
<plugins>
70+
<plugin>
71+
<artifactId>maven-surefire-plugin</artifactId>
72+
<version>3.5.1</version>
73+
<configuration>
74+
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
75+
</configuration>
76+
</plugin>
6577
<plugin>
6678
<groupId>org.apache.maven.plugins</groupId>
6779
<artifactId>maven-compiler-plugin</artifactId>
68-
<version>3.10.1</version>
80+
<version>3.13.0</version>
6981
<configuration>
70-
<source>${maven.compiler.source}</source>
71-
<target>${maven.compiler.target}</target>
82+
<source>21</source>
83+
<target>21</target>
7284
<compilerArgs>
7385
<arg>-Xlint:all</arg>
7486
<arg>-Xlint:-auxiliaryclass</arg>
@@ -80,38 +92,72 @@
8092
</configuration>
8193
</plugin>
8294
<plugin>
83-
<artifactId>maven-surefire-plugin</artifactId>
84-
<version>3.5.1</version>
95+
<groupId>org.jacoco</groupId>
96+
<artifactId>jacoco-maven-plugin</artifactId>
97+
<version>0.8.12</version>
98+
<executions>
99+
<execution>
100+
<goals>
101+
<goal>prepare-agent</goal>
102+
</goals>
103+
</execution>
104+
<execution>
105+
<id>generate-code-coverage-report</id>
106+
<phase>test</phase>
107+
<goals>
108+
<goal>report</goal>
109+
</goals>
110+
</execution>
111+
</executions>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.apache.maven.plugins</groupId>
115+
<artifactId>maven-checkstyle-plugin</artifactId>
116+
<version>3.5.0</version>
85117
<configuration>
86-
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
118+
<configLocation>checkstyle.xml</configLocation>
119+
<consoleOutput>true</consoleOutput>
120+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
121+
<violationSeverity>warning</violationSeverity>
87122
</configuration>
123+
<dependencies>
124+
<dependency>
125+
<groupId>com.puppycrawl.tools</groupId>
126+
<artifactId>checkstyle</artifactId>
127+
<version>10.18.2</version>
128+
</dependency>
129+
</dependencies>
88130
</plugin>
89131
<plugin>
90132
<groupId>com.github.spotbugs</groupId>
91133
<artifactId>spotbugs-maven-plugin</artifactId>
92-
<version>4.7.0</version>
134+
<version>4.8.6.4</version>
93135
<configuration>
94136
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
95137
<includeTests>true</includeTests>
96-
</configuration>
97-
</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>
138+
<plugins>
139+
<plugin>
140+
<groupId>com.mebigfatguy.fb-contrib</groupId>
141+
<artifactId>fb-contrib</artifactId>
142+
<version>7.6.5</version>
143+
</plugin>
144+
<plugin>
145+
<groupId>com.h3xstream.findsecbugs</groupId>
146+
<artifactId>findsecbugs-plugin</artifactId>
147+
<version>1.13.0</version>
148+
</plugin>
149+
</plugins>
105150
</configuration>
106151
</plugin>
107152
<plugin>
108153
<groupId>org.apache.maven.plugins</groupId>
109154
<artifactId>maven-pmd-plugin</artifactId>
110-
<version>3.15.0</version>
155+
<version>3.25.0</version>
111156
<configuration>
112157
<printFailingErrors>true</printFailingErrors>
113158
<includeTests>true</includeTests>
114159
<linkXRef>false</linkXRef>
160+
<excludeFromFailureFile>pmd-exclude.properties</excludeFromFailureFile>
115161
</configuration>
116162
</plugin>
117163
</plugins>

0 commit comments

Comments
 (0)