From a361d8fdff116153f9b40a29d81b3aab153a84f4 Mon Sep 17 00:00:00 2001 From: bobbylight Date: Sun, 10 Nov 2024 16:49:37 -0500 Subject: [PATCH] Build with Java 11. Compiler warnings due to deprecated API usage not cleaned up yet --- README.md | 10 ++++++++-- gradle.properties | 8 +++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 304deebaf..11fd89bd0 100755 --- a/README.md +++ b/README.md @@ -25,8 +25,14 @@ all unit tests, and create the jar, run: ./gradlew build --warning-mode all -RSTA 3.0 and newer requires Java 8 to compile and run. If you need -Java 6 compatibility, you'll need to use a 2.6.x version. +RSTA 4.0 and later requires Java 11 to compile and run. If you need +to support older Java versions: + +| RSTA Version | Required to build (JDK) | Requird to run (JRE) | +|--------------|-------------------------|----------------------| +| 4.x | 11 | 11 | +| 3.x | 11 | 8 | +| 2.6.x | 6 | 6 | # Demos diff --git a/gradle.properties b/gradle.properties index c6edd3bdd..9ca9eb7de 100755 --- a/gradle.properties +++ b/gradle.properties @@ -1,7 +1,9 @@ # Note that Maven- and signing-related properties are in /gradle.properties -javaLanguageVersion=8 -osgiRequiredCompatibility=1.8 -version=3.5.3-SNAPSHOT + +# This controls the javac "release" version. +javaLanguageVersion=11 +osgiRequiredCompatibility=11 +version=4.0.0-SNAPSHOT # Ugh, see https://github.com/gradle/gradle/issues/11308 systemProp.org.gradle.internal.publish.checksums.insecure=true