|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
1 | 2 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
2 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3 | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
4 |
| - |
5 | 5 | <modelVersion>4.0.0</modelVersion>
|
6 | 6 | <groupId>com.thealgorithms</groupId>
|
7 | 7 | <artifactId>Java</artifactId>
|
8 | 8 | <version>1.0-SNAPSHOT</version>
|
| 9 | + <packaging>jar</packaging> |
9 | 10 |
|
10 | 11 | <properties>
|
11 | 12 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
12 | 13 | <maven.compiler.source>21</maven.compiler.source>
|
13 | 14 | <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> |
18 | 16 | </properties>
|
19 | 17 |
|
20 | 18 | <dependencyManagement>
|
21 | 19 | <dependencies>
|
22 | 20 | <dependency>
|
23 | 21 | <groupId>org.junit</groupId>
|
24 | 22 | <artifactId>junit-bom</artifactId>
|
25 |
| - <version>${junit.version}</version> |
| 23 | + <version>5.11.2</version> |
26 | 24 | <type>pom</type>
|
27 | 25 | <scope>import</scope>
|
28 | 26 | </dependency>
|
|
33 | 31 | <dependency>
|
34 | 32 | <groupId>org.junit.jupiter</groupId>
|
35 | 33 | <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> |
37 | 41 | <scope>test</scope>
|
38 | 42 | </dependency>
|
39 | 43 | <dependency>
|
|
42 | 46 | <version>${assertj.version}</version>
|
43 | 47 | <scope>test</scope>
|
44 | 48 | </dependency>
|
| 49 | + |
45 | 50 | <dependency>
|
46 | 51 | <groupId>org.junit.jupiter</groupId>
|
47 | 52 | <artifactId>junit-jupiter-api</artifactId>
|
48 |
| - <version>${junit.version}</version> |
| 53 | + <version>5.11.2</version> |
49 | 54 | <scope>test</scope>
|
50 | 55 | </dependency>
|
51 | 56 | <dependency>
|
52 | 57 | <groupId>org.apache.commons</groupId>
|
53 | 58 | <artifactId>commons-lang3</artifactId>
|
54 |
| - <version>${commons-lang3.version}</version> |
| 59 | + <version>3.17.0</version> |
55 | 60 | </dependency>
|
56 | 61 | <dependency>
|
57 | 62 | <groupId>org.apache.commons</groupId>
|
58 | 63 | <artifactId>commons-collections4</artifactId>
|
59 |
| - <version>${commons-collections4.version}</version> |
| 64 | + <version>4.5.0-M2</version> |
60 | 65 | </dependency>
|
61 | 66 | </dependencies>
|
62 | 67 |
|
63 | 68 | <build>
|
64 | 69 | <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> |
65 | 77 | <plugin>
|
66 | 78 | <groupId>org.apache.maven.plugins</groupId>
|
67 | 79 | <artifactId>maven-compiler-plugin</artifactId>
|
68 |
| - <version>3.10.1</version> |
| 80 | + <version>3.13.0</version> |
69 | 81 | <configuration>
|
70 |
| - <source>${maven.compiler.source}</source> |
71 |
| - <target>${maven.compiler.target}</target> |
| 82 | + <source>21</source> |
| 83 | + <target>21</target> |
72 | 84 | <compilerArgs>
|
73 | 85 | <arg>-Xlint:all</arg>
|
74 | 86 | <arg>-Xlint:-auxiliaryclass</arg>
|
|
80 | 92 | </configuration>
|
81 | 93 | </plugin>
|
82 | 94 | <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> |
85 | 117 | <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> |
87 | 122 | </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> |
88 | 130 | </plugin>
|
89 | 131 | <plugin>
|
90 | 132 | <groupId>com.github.spotbugs</groupId>
|
91 | 133 | <artifactId>spotbugs-maven-plugin</artifactId>
|
92 |
| - <version>4.7.0</version> |
| 134 | + <version>4.8.6.4</version> |
93 | 135 | <configuration>
|
94 | 136 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
|
95 | 137 | <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> |
105 | 150 | </configuration>
|
106 | 151 | </plugin>
|
107 | 152 | <plugin>
|
108 | 153 | <groupId>org.apache.maven.plugins</groupId>
|
109 | 154 | <artifactId>maven-pmd-plugin</artifactId>
|
110 |
| - <version>3.15.0</version> |
| 155 | + <version>3.25.0</version> |
111 | 156 | <configuration>
|
112 | 157 | <printFailingErrors>true</printFailingErrors>
|
113 | 158 | <includeTests>true</includeTests>
|
114 | 159 | <linkXRef>false</linkXRef>
|
| 160 | + <excludeFromFailureFile>pmd-exclude.properties</excludeFromFailureFile> |
115 | 161 | </configuration>
|
116 | 162 | </plugin>
|
117 | 163 | </plugins>
|
|
0 commit comments