Skip to content
Snippets Groups Projects
Commit 9a83b201 authored by Grégory Mantelet's avatar Grégory Mantelet
Browse files

[TAP,UWS] Ensure the compatibility with Java 7 in the ANT and Gradle scripts.

parent c3e97e6e
No related branches found
No related tags found
No related merge requests found
...@@ -38,3 +38,7 @@ test{ ...@@ -38,3 +38,7 @@ test{
sourceSets.main.java.srcDirs = ["src"] sourceSets.main.java.srcDirs = ["src"]
sourceSets.test.java.srcDirs = ["test"] sourceSets.test.java.srcDirs = ["test"]
/* Set the minimum Java version compatibility: */
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
<condition><not><isset property="JUNIT-API"/></not></condition> <condition><not><isset property="JUNIT-API"/></not></condition>
</fail> </fail>
<!-- JAVA VERSION COMPATIBILITY -->
<property name="ant.build.javac.source" value="1.7"/>
<property name="ant.build.javac.target" value="1.7"/>
<!-- CLASSPATHS --> <!-- CLASSPATHS -->
<path id="adql.classpath"> <path id="adql.classpath">
<pathelement location="${POSTGRES}" /> <pathelement location="${POSTGRES}" />
......
...@@ -40,6 +40,10 @@ ...@@ -40,6 +40,10 @@
<fail message="The property SERVLET-API must be set! It provides the path toward a directory or a JAR which contains all classes inside javax.servlet."> <fail message="The property SERVLET-API must be set! It provides the path toward a directory or a JAR which contains all classes inside javax.servlet.">
<condition><not><isset property="SERVLET-API"/></not></condition> <condition><not><isset property="SERVLET-API"/></not></condition>
</fail> </fail>
<!-- JAVA VERSION COMPATIBILITY -->
<property name="ant.build.javac.source" value="1.7"/>
<property name="ant.build.javac.target" value="1.7"/>
<!-- CLASSPATHS --> <!-- CLASSPATHS -->
<path id="uws.classpath"> <path id="uws.classpath">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment