|
14 | 14 | <properties> |
15 | 15 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
16 | 16 | <maven.compiler.release>21</maven.compiler.release> |
| 17 | + <maven.version>3.6.3</maven.version> |
17 | 18 | <junit.version>5.10.0</junit.version> |
18 | | - <jacoco.version>0.8.11</jacoco.version> |
| 19 | + <jacoco.version>0.8.14</jacoco.version> |
19 | 20 | </properties> |
20 | 21 |
|
21 | 22 | <dependencies> |
|
37 | 38 |
|
38 | 39 | <build> |
39 | 40 | <plugins> |
| 41 | + <!-- Maven Enforcer Plugin to require minimum Maven version --> |
| 42 | + <plugin> |
| 43 | + <groupId>org.apache.maven.plugins</groupId> |
| 44 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 45 | + <version>3.6.2</version> |
| 46 | + <executions> |
| 47 | + <execution> |
| 48 | + <id>enforce-maven</id> |
| 49 | + <goals> |
| 50 | + <goal>enforce</goal> |
| 51 | + </goals> |
| 52 | + <configuration> |
| 53 | + <rules> |
| 54 | + <requireMavenVersion> |
| 55 | + <version>[${maven.version},)</version> |
| 56 | + <message>Maven ${maven.version} or higher is required.</message> |
| 57 | + </requireMavenVersion> |
| 58 | + </rules> |
| 59 | + </configuration> |
| 60 | + </execution> |
| 61 | + </executions> |
| 62 | + </plugin> |
| 63 | + |
40 | 64 | <!-- Maven Compiler Plugin --> |
41 | 65 | <plugin> |
42 | 66 | <groupId>org.apache.maven.plugins</groupId> |
43 | 67 | <artifactId>maven-compiler-plugin</artifactId> |
44 | | - <version>3.11.0</version> |
| 68 | + <version>3.14.1</version> |
45 | 69 | <configuration> |
46 | 70 | <release>${maven.compiler.release}</release> |
47 | 71 | <compilerArgs> |
|
56 | 80 | <plugin> |
57 | 81 | <groupId>org.apache.maven.plugins</groupId> |
58 | 82 | <artifactId>maven-surefire-plugin</artifactId> |
59 | | - <version>3.2.2</version> |
| 83 | + <version>3.5.4</version> |
60 | 84 | <configuration> |
61 | 85 | <argLine>-enableassertions ${argLine}</argLine> |
62 | 86 | </configuration> |
|
134 | 158 | <plugin> |
135 | 159 | <groupId>org.apache.maven.plugins</groupId> |
136 | 160 | <artifactId>maven-assembly-plugin</artifactId> |
137 | | - <version>3.6.0</version> |
| 161 | + <version>3.7.1</version> |
138 | 162 | <configuration> |
139 | 163 | <archive> |
140 | 164 | <manifest> |
|
160 | 184 | <plugin> |
161 | 185 | <groupId>org.apache.maven.plugins</groupId> |
162 | 186 | <artifactId>maven-jar-plugin</artifactId> |
163 | | - <version>3.3.0</version> |
| 187 | + <version>3.4.2</version> |
164 | 188 | <configuration> |
165 | 189 | <archive> |
166 | 190 | <manifest> |
|
170 | 194 | </configuration> |
171 | 195 | </plugin> |
172 | 196 |
|
173 | | - <!-- Formatter Maven Plugin for code formatting --> |
174 | | - <!-- Disabled by default. To enable, create a .formatter.xml config file --> |
175 | | - <!-- and uncomment the executions section below --> |
| 197 | + <!-- Spotless Plugin for code formatting --> |
176 | 198 | <plugin> |
177 | | - <groupId>net.revelc.code.formatter</groupId> |
178 | | - <artifactId>formatter-maven-plugin</artifactId> |
179 | | - <version>2.23.0</version> |
| 199 | + <groupId>com.diffplug.spotless</groupId> |
| 200 | + <artifactId>spotless-maven-plugin</artifactId> |
| 201 | + <version>2.43.0</version> |
180 | 202 | <configuration> |
181 | | - <configFile>${project.basedir}/.formatter.xml</configFile> |
182 | | - <lineEnding>LF</lineEnding> |
| 203 | + <java> |
| 204 | + <!-- Using Eclipse formatter with custom config (2 spaces) --> |
| 205 | + <eclipse> |
| 206 | + <version>4.31</version> |
| 207 | + <file>${project.basedir}/.eclipse-formatter.xml</file> |
| 208 | + </eclipse> |
| 209 | + <removeUnusedImports/> |
| 210 | + <trimTrailingWhitespace/> |
| 211 | + <endWithNewline/> |
| 212 | + </java> |
183 | 213 | </configuration> |
184 | | - <!-- Uncomment to enable automatic formatting on compile |
185 | 214 | <executions> |
186 | 215 | <execution> |
187 | 216 | <goals> |
188 | | - <goal>format</goal> |
| 217 | + <goal>apply</goal> |
189 | 218 | </goals> |
| 219 | + <phase>process-sources</phase> |
190 | 220 | </execution> |
191 | 221 | </executions> |
192 | | - --> |
193 | 222 | </plugin> |
194 | 223 | </plugins> |
195 | 224 | </build> |
|
0 commit comments