Enforce the usage of OpenJDK as Java VM. Advance version to 1.1.0
This commit is contained in:
parent
682ef513d8
commit
75e801dc08
|
@ -0,0 +1,8 @@
|
||||||
|
# MAVEN PARENT POM
|
||||||
|
|
||||||
|
A parent pom for all the gCube artifacts.
|
||||||
|
|
||||||
|
# Enforcements
|
||||||
|
* Java 8 (target and source)
|
||||||
|
* OpenJDK as target Java VM.
|
||||||
|
* Maven 3.0.0+
|
9
pom.xml
9
pom.xml
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
<groupId>org.gcube.tools</groupId>
|
<groupId>org.gcube.tools</groupId>
|
||||||
<artifactId>maven-parent</artifactId>
|
<artifactId>maven-parent</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.1.0</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<!-- gCube repositories -->
|
<!-- gCube repositories -->
|
||||||
|
@ -335,6 +335,12 @@
|
||||||
<!--requireJavaVersion>
|
<!--requireJavaVersion>
|
||||||
<version>${java_version}</version>
|
<version>${java_version}</version>
|
||||||
</requireJavaVersion-->
|
</requireJavaVersion-->
|
||||||
|
<requireProperty>
|
||||||
|
<property>java.vm.name</property>
|
||||||
|
<message>Java Vendor must be OpenJDK.</message>
|
||||||
|
<regex>${java.expected.vm}</regex>
|
||||||
|
<regexMessage>Java Vendor must be OpenJDK. Found: ${java.vm.name}</regexMessage>
|
||||||
|
</requireProperty>
|
||||||
</rules>
|
</rules>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
@ -382,6 +388,7 @@
|
||||||
<distroDirectory>distro</distroDirectory>
|
<distroDirectory>distro</distroDirectory>
|
||||||
|
|
||||||
<java_version>1.8</java_version>
|
<java_version>1.8</java_version>
|
||||||
|
<java.expected.vm>.*OpenJDK.*</java.expected.vm>
|
||||||
<maven.compiler.source>${java_version}</maven.compiler.source>
|
<maven.compiler.source>${java_version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java_version}</maven.compiler.target>
|
<maven.compiler.target>${java_version}</maven.compiler.target>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue