Add enforcer plugin to make sure, we are using java9

This commit is contained in:
Andreas Dangel 2017-09-23 19:24:37 +02:00
parent ade0d7d029
commit 8bd413591f

21
pom.xml
View File

@ -411,7 +411,7 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<version>3.0.0-M1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -455,6 +455,25 @@ Additionally it includes CPD, the copy-paste-detector. CPD finds duplicated code
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[9,)</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>