Skip to content

Commit af71a16

Browse files
committed
[feature] Enforce recent version of Java and Maven for building
1 parent 23bfa0b commit af71a16

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,30 @@
132132
</pluginManagement>
133133

134134
<plugins>
135+
<plugin>
136+
<groupId>org.apache.maven.plugins</groupId>
137+
<artifactId>maven-enforcer-plugin</artifactId>
138+
<version>3.6.2</version>
139+
<executions>
140+
<execution>
141+
<id>enforce-maven-version</id>
142+
<goals>
143+
<goal>enforce</goal>
144+
</goals>
145+
<configuration>
146+
<rules>
147+
<requireJavaVersion>
148+
<version>[11,)</version>
149+
</requireJavaVersion>
150+
<requireMavenVersion>
151+
<version>[3.9.0,)</version>
152+
</requireMavenVersion>
153+
</rules>
154+
<fail>true</fail>
155+
</configuration>
156+
</execution>
157+
</executions>
158+
</plugin>
135159
<plugin>
136160
<groupId>com.code54.mojo</groupId>
137161
<artifactId>buildversion-plugin</artifactId>

0 commit comments

Comments
 (0)