|
2 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
| 5 | + |
5 | 6 | <modelVersion>4.0.0</modelVersion>
|
6 | 7 | <groupId>com.thealgorithms</groupId>
|
7 | 8 | <artifactId>Java</artifactId>
|
|
12 | 13 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
13 | 14 | <maven.compiler.source>21</maven.compiler.source>
|
14 | 15 | <maven.compiler.target>21</maven.compiler.target>
|
15 |
| - <assertj.version>3.26.3</assertj.version> |
| 16 | + <assertj.version>3.26.3</assertj.version> <!-- Update version if necessary --> |
| 17 | + <junit.version>5.11.2</junit.version> |
| 18 | + <commons-lang3.version>3.17.0</commons-lang3.version> |
| 19 | + <commons-collections4.version>4.5.0-M2</commons-collections4.version> |
16 | 20 | </properties>
|
17 | 21 |
|
18 | 22 | <dependencyManagement>
|
19 | 23 | <dependencies>
|
20 | 24 | <dependency>
|
21 | 25 | <groupId>org.junit</groupId>
|
22 | 26 | <artifactId>junit-bom</artifactId>
|
23 |
| - <version>5.11.2</version> |
| 27 | + <version>${junit.version}</version> |
24 | 28 | <type>pom</type>
|
25 | 29 | <scope>import</scope>
|
26 | 30 | </dependency>
|
|
31 | 35 | <dependency>
|
32 | 36 | <groupId>org.junit.jupiter</groupId>
|
33 | 37 | <artifactId>junit-jupiter</artifactId>
|
34 |
| - <version>5.11.2</version> |
| 38 | + <version>${junit.version}</version> |
35 | 39 | <scope>test</scope>
|
36 | 40 | </dependency>
|
37 | 41 | <dependency>
|
|
40 | 44 | <version>${assertj.version}</version>
|
41 | 45 | <scope>test</scope>
|
42 | 46 | </dependency>
|
43 |
| - |
44 |
| - <dependency> |
45 |
| - <groupId>org.junit.jupiter</groupId> |
46 |
| - <artifactId>junit-jupiter-api</artifactId> |
47 |
| - <version>5.11.2</version> |
48 |
| - <scope>test</scope> |
49 |
| - </dependency> |
50 | 47 | <dependency>
|
51 | 48 | <groupId>org.apache.commons</groupId>
|
52 | 49 | <artifactId>commons-lang3</artifactId>
|
53 |
| - <version>3.17.0</version> |
| 50 | + <version>${commons-lang3.version}</version> |
54 | 51 | </dependency>
|
55 | 52 | <dependency>
|
56 | 53 | <groupId>org.apache.commons</groupId>
|
57 | 54 | <artifactId>commons-collections4</artifactId>
|
58 |
| - <version>4.5.0-M2</version> |
| 55 | + <version>${commons-collections4.version}</version> |
59 | 56 | </dependency>
|
60 | 57 | </dependencies>
|
61 | 58 |
|
|
64 | 61 | <plugin>
|
65 | 62 | <artifactId>maven-surefire-plugin</artifactId>
|
66 | 63 | <version>3.5.1</version>
|
67 |
| - <configuration> |
68 |
| - <forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/> |
69 |
| - </configuration> |
70 | 64 | </plugin>
|
71 | 65 | <plugin>
|
72 | 66 | <groupId>org.apache.maven.plugins</groupId>
|
|
77 | 71 | <target>21</target>
|
78 | 72 | <compilerArgs>
|
79 | 73 | <arg>-Xlint:all</arg>
|
80 |
| - <arg>-Xlint:-auxiliaryclass</arg> |
81 |
| - <arg>-Xlint:-rawtypes</arg> |
82 |
| - <arg>-Xlint:-unchecked</arg> |
83 |
| - <arg>-Xlint:-lossy-conversions</arg> |
84 | 74 | <arg>-Werror</arg>
|
85 | 75 | </compilerArgs>
|
86 | 76 | </configuration>
|
|
114 | 104 | <includeTestSourceDirectory>true</includeTestSourceDirectory>
|
115 | 105 | <violationSeverity>warning</violationSeverity>
|
116 | 106 | </configuration>
|
117 |
| - <dependencies> |
118 |
| - <dependency> |
119 |
| - <groupId>com.puppycrawl.tools</groupId> |
120 |
| - <artifactId>checkstyle</artifactId> |
121 |
| - <version>10.18.2</version> |
122 |
| - </dependency> |
123 |
| - </dependencies> |
124 | 107 | </plugin>
|
125 | 108 | <plugin>
|
126 | 109 | <groupId>com.github.spotbugs</groupId>
|
|
129 | 112 | <configuration>
|
130 | 113 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
|
131 | 114 | <includeTests>true</includeTests>
|
132 |
| - <plugins> |
133 |
| - <plugin> |
134 |
| - <groupId>com.mebigfatguy.fb-contrib</groupId> |
135 |
| - <artifactId>fb-contrib</artifactId> |
136 |
| - <version>7.6.5</version> |
137 |
| - </plugin> |
138 |
| - <plugin> |
139 |
| - <groupId>com.h3xstream.findsecbugs</groupId> |
140 |
| - <artifactId>findsecbugs-plugin</artifactId> |
141 |
| - <version>1.13.0</version> |
142 |
| - </plugin> |
143 |
| - </plugins> |
144 | 115 | </configuration>
|
145 | 116 | </plugin>
|
146 | 117 | <plugin>
|
|
150 | 121 | <configuration>
|
151 | 122 | <printFailingErrors>true</printFailingErrors>
|
152 | 123 | <includeTests>true</includeTests>
|
153 |
| - <linkXRef>false</linkXRef> |
154 |
| - <excludeFromFailureFile>pmd-exclude.properties</excludeFromFailureFile> |
155 | 124 | </configuration>
|
156 | 125 | </plugin>
|
157 | 126 | </plugins>
|
|
0 commit comments