Skip to content

Commit ff3fed9

Browse files
committed
[NO-JIRA] Update enforcer-plugin to require building with JDK 21
1 parent 5f394c1 commit ff3fed9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,39 @@
13401340
</activation>
13411341
<build>
13421342
<plugins>
1343+
<plugin>
1344+
<groupId>org.apache.maven.plugins</groupId>
1345+
<artifactId>maven-enforcer-plugin</artifactId>
1346+
<executions>
1347+
<execution>
1348+
<id>enforce-maven</id>
1349+
<goals>
1350+
<goal>enforce</goal>
1351+
</goals>
1352+
<configuration>
1353+
<rules>
1354+
<requireMavenVersion>
1355+
<version>3.0.5</version>
1356+
</requireMavenVersion>
1357+
</rules>
1358+
</configuration>
1359+
</execution>
1360+
<execution>
1361+
<id>enforce-java-version</id>
1362+
<goals>
1363+
<goal>enforce</goal>
1364+
</goals>
1365+
<configuration>
1366+
<rules>
1367+
<requireJavaVersion>
1368+
<version>[21,)</version>
1369+
<message>You must use Java 21+ to release.</message>
1370+
</requireJavaVersion>
1371+
</rules>
1372+
</configuration>
1373+
</execution>
1374+
</executions>
1375+
</plugin>
13431376
<plugin>
13441377
<groupId>org.apache.maven.plugins</groupId>
13451378
<artifactId>maven-surefire-plugin</artifactId>

0 commit comments

Comments
 (0)