Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Commit 82175f5

Browse files
committed
maven-enforcer: require Java 1.8.0 and above
1 parent 02c6bc6 commit 82175f5

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,34 @@
9292
<build>
9393
<pluginManagement>
9494
<plugins>
95+
<plugin>
96+
<groupId>org.apache.maven.plugins</groupId>
97+
<artifactId>maven-enforcer-plugin</artifactId>
98+
<version>1.4.1</version>
99+
<executions>
100+
<execution>
101+
<id>enforce-java</id>
102+
<goals>
103+
<goal>enforce</goal>
104+
</goals>
105+
<configuration>
106+
<rules>
107+
<!--
108+
Require Java 8 and above to build the distribution. Note
109+
that this is a requirement on process to build the
110+
distribution only. It is expected for the build to fail
111+
using Java 7, but the output is still required to work on
112+
Java 7.
113+
-->
114+
<requireJavaVersion>
115+
<version>[1.8.0,)</version>
116+
</requireJavaVersion>
117+
</rules>
118+
</configuration>
119+
</execution>
120+
</executions>
121+
</plugin>
122+
95123
<plugin>
96124
<groupId>org.apache.maven.plugins</groupId>
97125
<artifactId>maven-clean-plugin</artifactId>
@@ -264,6 +292,11 @@
264292
</pluginManagement>
265293

266294
<plugins>
295+
<plugin>
296+
<groupId>org.apache.maven.plugins</groupId>
297+
<artifactId>maven-enforcer-plugin</artifactId>
298+
</plugin>
299+
267300
<plugin>
268301
<groupId>org.apache.maven.plugins</groupId>
269302
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)