Skip to content

Commit

Permalink
[TAP,UWS] Ensure the compatibility with Java 7 in the ANT and Gradle …
Browse files Browse the repository at this point in the history
…scripts.
  • Loading branch information
gmantele committed Mar 20, 2019
1 parent c3e97e6 commit 9a83b20
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ test{

sourceSets.main.java.srcDirs = ["src"]
sourceSets.test.java.srcDirs = ["test"]

/* Set the minimum Java version compatibility: */
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
4 changes: 4 additions & 0 deletions buildADQL.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
<condition><not><isset property="JUNIT-API"/></not></condition>
</fail>

<!-- JAVA VERSION COMPATIBILITY -->
<property name="ant.build.javac.source" value="1.7"/>
<property name="ant.build.javac.target" value="1.7"/>

<!-- CLASSPATHS -->
<path id="adql.classpath">
<pathelement location="${POSTGRES}" />
Expand Down
4 changes: 4 additions & 0 deletions buildUWS.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.">
<condition><not><isset property="SERVLET-API"/></not></condition>
</fail>

<!-- JAVA VERSION COMPATIBILITY -->
<property name="ant.build.javac.source" value="1.7"/>
<property name="ant.build.javac.target" value="1.7"/>

<!-- CLASSPATHS -->
<path id="uws.classpath">
Expand Down

0 comments on commit 9a83b20

Please sign in to comment.