Skip to content

Commit 8cf890b

Browse files
committed
updated Maven plugin versions
Signed-off-by: Konstantin Läufer <[email protected]>
1 parent 135c6f7 commit 8cf890b

File tree

1 file changed

+45
-16
lines changed

1 file changed

+45
-16
lines changed

pom.xml

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1616
<maven.compiler.release>21</maven.compiler.release>
17+
<maven.version>3.6.3</maven.version>
1718
<junit.version>5.10.0</junit.version>
18-
<jacoco.version>0.8.11</jacoco.version>
19+
<jacoco.version>0.8.14</jacoco.version>
1920
</properties>
2021

2122
<dependencies>
@@ -37,11 +38,34 @@
3738

3839
<build>
3940
<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+
4064
<!-- Maven Compiler Plugin -->
4165
<plugin>
4266
<groupId>org.apache.maven.plugins</groupId>
4367
<artifactId>maven-compiler-plugin</artifactId>
44-
<version>3.11.0</version>
68+
<version>3.14.1</version>
4569
<configuration>
4670
<release>${maven.compiler.release}</release>
4771
<compilerArgs>
@@ -56,7 +80,7 @@
5680
<plugin>
5781
<groupId>org.apache.maven.plugins</groupId>
5882
<artifactId>maven-surefire-plugin</artifactId>
59-
<version>3.2.2</version>
83+
<version>3.5.4</version>
6084
<configuration>
6185
<argLine>-enableassertions ${argLine}</argLine>
6286
</configuration>
@@ -134,7 +158,7 @@
134158
<plugin>
135159
<groupId>org.apache.maven.plugins</groupId>
136160
<artifactId>maven-assembly-plugin</artifactId>
137-
<version>3.6.0</version>
161+
<version>3.7.1</version>
138162
<configuration>
139163
<archive>
140164
<manifest>
@@ -160,7 +184,7 @@
160184
<plugin>
161185
<groupId>org.apache.maven.plugins</groupId>
162186
<artifactId>maven-jar-plugin</artifactId>
163-
<version>3.3.0</version>
187+
<version>3.4.2</version>
164188
<configuration>
165189
<archive>
166190
<manifest>
@@ -170,26 +194,31 @@
170194
</configuration>
171195
</plugin>
172196

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 -->
176198
<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>
180202
<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>
183213
</configuration>
184-
<!-- Uncomment to enable automatic formatting on compile
185214
<executions>
186215
<execution>
187216
<goals>
188-
<goal>format</goal>
217+
<goal>apply</goal>
189218
</goals>
219+
<phase>process-sources</phase>
190220
</execution>
191221
</executions>
192-
-->
193222
</plugin>
194223
</plugins>
195224
</build>

0 commit comments

Comments
 (0)