Added jdk9 pre-checking

This commit is contained in:
Willem 2017-06-10 18:04:24 +02:00
parent 41f311ed50
commit 58b0155c2b
2 changed files with 42 additions and 1 deletions

View file

@ -55,6 +55,6 @@ public class TPQConfigParameterValueScripterObjectOrList implements TPQConfigPar
String function = functionName+"("+queryParameter.getValueType()+",'"+value+"')"; String function = functionName+"("+queryParameter.getValueType()+",'"+value+"')";
// Wrap in value holder because these values will not change anymore. // Wrap in value holder because these values will not change anymore.
return PREFIX_JS+TPQFactory.ParameterValueFunction.CREATE_VALUE_HOLDER+"("+function+");"; return PREFIX_JS+TPQFactory.ParameterValueFunction.CREATE_VALUE_HOLDER+"("+function+");"; // TODO: check if prefix should be removed.
} }
} }

41
pom.xml
View file

@ -164,6 +164,47 @@
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jdeps-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>jdkinternals</goal> <!-- verify main classes -->
<goal>test-jdkinternals</goal> <!-- verify test classes -->
</goals>
</execution>
</executions>
<configuration>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
<configuration>
<rules>
<requireMavenVersion>
<version>(3.0,)</version>
</requireMavenVersion>
<!-- jdk9 check
<banDuplicateClasses></banDuplicateClasses>
-->
</rules>
</configuration>
</plugin>
</plugins>
</build> </build>
<profiles> <profiles>
<profile> <profile>