Skip to content

Commit b6460be

Browse files
committed
Enforce java version for build
1 parent 07b2e22 commit b6460be

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,26 @@
8686

8787
<build>
8888
<plugins>
89+
<plugin>
90+
<groupId>org.apache.maven.plugins</groupId>
91+
<artifactId>maven-enforcer-plugin</artifactId>
92+
<version>3.0.0-M2</version>
93+
<executions>
94+
<execution>
95+
<id>validate</id>
96+
<goals>
97+
<goal>enforce</goal>
98+
</goals>
99+
<configuration>
100+
<rules>
101+
<requireJavaVersion>
102+
<version>[1.7.0-0,1.9.0-0)</version>
103+
</requireJavaVersion>
104+
</rules>
105+
</configuration>
106+
</execution>
107+
</executions>
108+
</plugin>
89109
<plugin>
90110
<groupId>org.apache.maven.plugins</groupId>
91111
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)