THRIFT-5702 Support Java 8
Client: Java
Patch: Fokko Driesprong
This closes #2785
diff --git a/lib/java/gradle/sourceConfiguration.gradle b/lib/java/gradle/sourceConfiguration.gradle
index e3e143a..30f72cc 100644
--- a/lib/java/gradle/sourceConfiguration.gradle
+++ b/lib/java/gradle/sourceConfiguration.gradle
@@ -39,8 +39,8 @@
options.encoding = 'UTF-8'
options.debug = true
options.deprecation = true
- // the following is to build with Java 11 specifications, even when building with later JDK
- options.release = 11
+ // the following is to build with Java 8 specifications, even when building with later JDK
+ options.release = 8
options.compilerArgs += [
'-Werror',
'-Xlint:deprecation',