|
1 |
| -<?xml version="1.0" encoding="UTF-8"?> |
2 | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0"
|
3 | 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4 | 3 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
5 |
| - |
| 4 | + |
6 | 5 | <modelVersion>4.0.0</modelVersion>
|
7 | 6 | <groupId>com.thealgorithms</groupId>
|
8 | 7 | <artifactId>Java</artifactId>
|
9 | 8 | <version>1.0-SNAPSHOT</version>
|
10 |
| - <packaging>jar</packaging> |
11 | 9 |
|
12 | 10 | <properties>
|
13 | 11 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
44 | 42 | <version>${assertj.version}</version>
|
45 | 43 | <scope>test</scope>
|
46 | 44 | </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> |
47 | 51 | <dependency>
|
48 | 52 | <groupId>org.apache.commons</groupId>
|
49 | 53 | <artifactId>commons-lang3</artifactId>
|
|
58 | 62 |
|
59 | 63 | <build>
|
60 | 64 | <plugins>
|
61 |
| - <plugin> |
62 |
| - <artifactId>maven-surefire-plugin</artifactId> |
63 |
| - <version>3.5.1</version> |
64 |
| - </plugin> |
65 | 65 | <plugin>
|
66 | 66 | <groupId>org.apache.maven.plugins</groupId>
|
67 | 67 | <artifactId>maven-compiler-plugin</artifactId>
|
68 |
| - <version>3.13.0</version> |
| 68 | + <version>3.10.1</version> |
69 | 69 | <configuration>
|
70 |
| - <source>21</source> |
71 |
| - <target>21</target> |
| 70 | + <source>${maven.compiler.source}</source> |
| 71 | + <target>${maven.compiler.target}</target> |
72 | 72 | <compilerArgs>
|
73 | 73 | <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> |
74 | 78 | <arg>-Werror</arg>
|
75 | 79 | </compilerArgs>
|
76 | 80 | </configuration>
|
77 | 81 | </plugin>
|
78 | 82 | <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> |
101 | 85 | <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"/> |
106 | 87 | </configuration>
|
107 | 88 | </plugin>
|
108 | 89 | <plugin>
|
109 | 90 | <groupId>com.github.spotbugs</groupId>
|
110 | 91 | <artifactId>spotbugs-maven-plugin</artifactId>
|
111 |
| - <version>4.8.6.4</version> |
| 92 | + <version>4.7.0</version> |
112 | 93 | <configuration>
|
113 | 94 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
|
114 | 95 | <includeTests>true</includeTests>
|
115 | 96 | </configuration>
|
116 | 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> |
| 105 | + </configuration> |
| 106 | + </plugin> |
117 | 107 | <plugin>
|
118 | 108 | <groupId>org.apache.maven.plugins</groupId>
|
119 | 109 | <artifactId>maven-pmd-plugin</artifactId>
|
120 |
| - <version>3.25.0</version> |
| 110 | + <version>3.15.0</version> |
121 | 111 | <configuration>
|
122 | 112 | <printFailingErrors>true</printFailingErrors>
|
123 | 113 | <includeTests>true</includeTests>
|
| 114 | + <linkXRef>false</linkXRef> |
124 | 115 | </configuration>
|
125 | 116 | </plugin>
|
126 | 117 | </plugins>
|
|
0 commit comments