Skip to content

Commit

Permalink
Use Maven enforcer (#789)
Browse files Browse the repository at this point in the history
* Use Maven enforcer to clearly indicate the need for Java 17 during
build, as the usage of Java 8 on the classpath may lead to confusion.
* Also enforce the same minimum Maven version as used in the Maven
wrapper to ensure both mvn and mvnw create similar output.
  • Loading branch information
Bananeweizen authored May 21, 2024
1 parent a0c1369 commit c890aaa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,29 @@
</testResources>

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<rules>
<requireJavaVersion>
<version>17</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.9.6</version>
</requireMavenVersion>
</rules>
</configuration>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
Expand Down

0 comments on commit c890aaa

Please sign in to comment.