Commit 1f752558 authored by Matteo Melli's avatar Matteo Melli

Fixed maven.compiler.release when java version is 9+

parent 912e0a41
......@@ -368,19 +368,19 @@
<executions>
<execution>
<id>set-graal-home</id>
<phase>validate</phase>
<phase>generate-sources</phase>
<goals>
<goal>bsh-property</goal>
</goals>
<configuration>
<properties>
<property>maven.compiler.release</property>
<property>java.release.version</property>
</properties>
<source>
maven.compiler.release = session.getUserProperties().getProperty("java.version") != null
&amp;&amp; session.getUserProperties().getProperty("java.version").startsWith("1.")
? session.getUserProperties().getProperty("java.version").substring(2)
: session.getUserProperties().getProperty("java.version");
java.release.version = project.getProperties().getProperty("java.version") != null
&amp;&amp; project.getProperties().getProperty("java.version").startsWith("1.")
? project.getProperties().getProperty("java.version").substring(2)
: project.getProperties().getProperty("java.version");
</source>
</configuration>
</execution>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment