THRIFT-4694: Upgrade Java to Java 1.8
diff --git a/lib/java/gradle/codeQualityChecks.gradle b/lib/java/gradle/codeQualityChecks.gradle
index 9572ca1..1ff1c29 100644
--- a/lib/java/gradle/codeQualityChecks.gradle
+++ b/lib/java/gradle/codeQualityChecks.gradle
@@ -28,7 +28,6 @@
ignoreFailures = true
toolVersion = '6.0.0'
sourceSets = [ sourceSets.main ]
- targetJdk = sourceCompatibility
ruleSets = [ 'java-basic' ]
}
diff --git a/lib/java/gradle/sourceConfiguration.gradle b/lib/java/gradle/sourceConfiguration.gradle
index decc6a2..8dd0331 100644
--- a/lib/java/gradle/sourceConfiguration.gradle
+++ b/lib/java/gradle/sourceConfiguration.gradle
@@ -45,8 +45,8 @@
// ----------------------------------------------------------------------------
// Compiler configuration details
-sourceCompatibility = '1.6'
-targetCompatibility = '1.6'
+sourceCompatibility = '1.8'
+targetCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'