Skip to content

Commit 9a83b20

Browse files
committed
[TAP,UWS] Ensure the compatibility with Java 7 in the ANT and Gradle scripts.
1 parent c3e97e6 commit 9a83b20

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,7 @@ test{
3838

3939
sourceSets.main.java.srcDirs = ["src"]
4040
sourceSets.test.java.srcDirs = ["test"]
41+
42+
/* Set the minimum Java version compatibility: */
43+
sourceCompatibility = '1.7'
44+
targetCompatibility = '1.7'

buildADQL.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
<condition><not><isset property="JUNIT-API"/></not></condition>
3636
</fail>
3737

38+
<!-- JAVA VERSION COMPATIBILITY -->
39+
<property name="ant.build.javac.source" value="1.7"/>
40+
<property name="ant.build.javac.target" value="1.7"/>
41+
3842
<!-- CLASSPATHS -->
3943
<path id="adql.classpath">
4044
<pathelement location="${POSTGRES}" />

buildUWS.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
<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.">
4141
<condition><not><isset property="SERVLET-API"/></not></condition>
4242
</fail>
43+
44+
<!-- JAVA VERSION COMPATIBILITY -->
45+
<property name="ant.build.javac.source" value="1.7"/>
46+
<property name="ant.build.javac.target" value="1.7"/>
4347

4448
<!-- CLASSPATHS -->
4549
<path id="uws.classpath">

0 commit comments

Comments
 (0)