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
Branches
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}" />
......
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
<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">
<pathelement location="${commonsIOJar}" /> <pathelement location="${commonsIOJar}" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment