diff options
author | Sven Gothel <[email protected]> | 2019-08-19 03:12:34 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-08-19 03:12:34 +0200 |
commit | 493f0597646a1521074512b54c77d51fdfcca280 (patch) | |
tree | e9cdb6255be31a2b1ee3c22f1f82bb1908c15893 /make | |
parent | 6603026f1bfec02e3486c52270a09a355a1bf914 (diff) |
Bug 1363: Java 11: Refine Build and Runtime requirements. Fix Java compiler test.
We allow java [8-10] to pass even thought we require java 11 or greater.
This gives us the opportunity to run the junit tests on a java 8 VM (tested).
Diffstat (limited to 'make')
-rwxr-xr-x | make/jogamp-env.xml | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/make/jogamp-env.xml b/make/jogamp-env.xml index 67309ab..806cd84 100755 --- a/make/jogamp-env.xml +++ b/make/jogamp-env.xml @@ -1,18 +1,22 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Current requirements are: +<!-- Current runtime requirements are: - Java 1.8 (Level 8.0) - Android SDK API level 24 (Version 7.0 Nougat, released August 2016) - Official production builds are performed w/ Java 1.8. + Official production builds are performed _for_ Java 1.8. - Java 1.8 (Level 8.0) - Android SDK API level 24 (Version 7.0 Nougat, released August 2016) + Official production builds are performed _on_ OpenJDK 11 + and a Java JDK 11 or greater is required! + Android 7 API level 24 supports Java 1.8, see https://developer.android.com/studio/write/java8-support - Java 8 is chosen today, June 2019, since OpenJDK 1.8 is well supported - on desktop, mobile support is given w/ OpenJDK 9 and + Target Java 8 baseline is chosen today, June 2019, + since OpenJDK 1.8 is well supported on desktop, + mobile support is given w/ OpenJDK 9 and Android also support these language features for almost 3 years. For crosscompilation the following shall be set: @@ -48,14 +52,14 @@ </condition> </fail> - <fail message="Unsupported Java version: ${ant.java.version}. Make sure that the version of the Java compiler is 1.11 (11.0) or greater."> + <!-- Only for junit runtime tests Java [8-10] is allowed, for building Java 11 is required. --> + <fail message="Unsupported Java version: ${ant.java.version}. Make sure that the version of Java is 1.8 or greater."> <condition> <not> <or> - <equals arg1="${ant.java.version}" arg2="1.11"/> - <equals arg1="${ant.java.version}" arg2="1.12"/> - <equals arg1="${ant.java.version}" arg2="1.13"/> - <equals arg1="${ant.java.version}" arg2="1.14"/> + <equals arg1="${ant.java.version}" arg2="1.8"/> + <equals arg1="${ant.java.version}" arg2="9"/> + <equals arg1="${ant.java.version}" arg2="10"/> <equals arg1="${ant.java.version}" arg2="11"/> <equals arg1="${ant.java.version}" arg2="12"/> <equals arg1="${ant.java.version}" arg2="13"/> @@ -76,6 +80,9 @@ <condition property="javadoc.xarg1" value="-Xdoclint:none" else="-J-Ddummy=val"> <or> + <equals arg1="${ant.java.version}" arg2="1.8"/> + <equals arg1="${ant.java.version}" arg2="9"/> + <equals arg1="${ant.java.version}" arg2="10"/> <equals arg1="${ant.java.version}" arg2="11"/> <equals arg1="${ant.java.version}" arg2="12"/> <equals arg1="${ant.java.version}" arg2="13"/> |