Add maven-enforcer-plugin configuration to require use of JDK 1.8 or higher.

This commit is contained in:
Joel Schneider 2015-12-01 15:58:06 -06:00
parent 9dbeee3576
commit 0fd1d91b33
1 changed files with 22 additions and 0 deletions

22
pom.xml
View File

@ -950,6 +950,28 @@
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-java</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[1.8,)</version>
<message>
The hapi-fhir Maven build requires JDK version 1.8 or higher.
</message>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId> <artifactId>license-maven-plugin</artifactId>