You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by da...@apache.org on 2017/08/25 01:00:29 UTC
kudu git commit: gradle: target JRE 7 compatibility
Repository: kudu
Updated Branches:
refs/heads/master f9a6a1b2d -> 81fad4da9
gradle: target JRE 7 compatibility
Change-Id: Ib836a748f0f000b07460dd3141940655dbfb7a29
Reviewed-on: http://gerrit.cloudera.org:8080/7785
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <to...@apache.org>
Reviewed-by: Grant Henke <gr...@gmail.com>
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/81fad4da
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/81fad4da
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/81fad4da
Branch: refs/heads/master
Commit: 81fad4da9c1101ef9d6868d444c2d70a826d7aa8
Parents: f9a6a1b
Author: Dan Burkert <da...@apache.org>
Authored: Wed Aug 23 14:03:15 2017 -0700
Committer: Dan Burkert <da...@apache.org>
Committed: Fri Aug 25 00:59:36 2017 +0000
----------------------------------------------------------------------
java/gradle.properties | 4 ++--
java/gradle/compile.gradle | 8 +++++---
2 files changed, 7 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kudu/blob/81fad4da/java/gradle.properties
----------------------------------------------------------------------
diff --git a/java/gradle.properties b/java/gradle.properties
index 2ad95e7..9b20e67 100755
--- a/java/gradle.properties
+++ b/java/gradle.properties
@@ -25,7 +25,7 @@ url = https://kudu.apache.org/
scmUrl = git://git.apache.org/kudu.git
issueTrackerUrl = https://issues.apache.org/jira/projects/KUDU
-javaSourceCompatibility = 1.7
+javaCompatibility = 1.7
encoding = UTF-8
# Maximum parallel forks to use while unit testing.
@@ -38,4 +38,4 @@ org.gradle.daemon=true
# org.gradle.caching=true
# org.gradle.configureondemand=true
# org.gradle.parallel=true
-# org.gradle.workers.max=4
\ No newline at end of file
+# org.gradle.workers.max=4
http://git-wip-us.apache.org/repos/asf/kudu/blob/81fad4da/java/gradle/compile.gradle
----------------------------------------------------------------------
diff --git a/java/gradle/compile.gradle b/java/gradle/compile.gradle
index 823775a..1e42acf 100644
--- a/java/gradle/compile.gradle
+++ b/java/gradle/compile.gradle
@@ -19,14 +19,16 @@
// Java Configuration
tasks.withType(JavaCompile) {
- sourceCompatibility = javaSourceCompatibility
+ sourceCompatibility = javaCompatibility
+ targetCompatibility = javaCompatibility
options.encoding = encoding // make sure the encoding is defined by the project and not the system default.
options.incremental = true // enable incremental compilation.
}
// Scala configuration
tasks.withType(ScalaCompile) {
- sourceCompatibility = javaSourceCompatibility
+ sourceCompatibility = javaCompatibility
+ targetCompatibility = javaCompatibility
scalaCompileOptions.encoding = encoding // make sure the encoding is defined by the project and not the system default.
scalaCompileOptions.additionalParameters = [
// Emit warning and location for usages of features that should be imported explicitly.
@@ -34,4 +36,4 @@ tasks.withType(ScalaCompile) {
// Emit various static analysis warnings.
"-Xlint"
]
-}
\ No newline at end of file
+}