aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2018-02-21 21:48:17 -0800
committerKristen Kozak <sebright@google.com>2018-02-22 11:14:06 -0800
commit8646fd4bdf235323d3911639bc83b20cb1fa31c0 (patch)
treed3e5445890da8d577d9dfa8ecfb3361df61ede50
parent21a3dac2cf8a6bd310af6962c9d37098314c4072 (diff)
downloadplatform_external_opencensus-java-8646fd4bdf235323d3911639bc83b20cb1fa31c0.tar.gz
platform_external_opencensus-java-8646fd4bdf235323d3911639bc83b20cb1fa31c0.tar.bz2
platform_external_opencensus-java-8646fd4bdf235323d3911639bc83b20cb1fa31c0.zip
Don't use -Werror with Java 9, for now.
There are currently some warnings with Java 9: warning: [options] source value 1.6 is obsolete and will be removed in a future release warning: [options] target value 1.6 is obsolete and will be removed in a future release warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
-rw-r--r--build.gradle5
1 files changed, 3 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index effcb08f..69662153 100644
--- a/build.gradle
+++ b/build.gradle
@@ -103,9 +103,10 @@ subprojects {
]
}
it.options.encoding = "UTF-8"
- // TODO(bdrutu): Enable when fix the issue with configuring bootstrap class.
+ // TODO(bdrutu): Enable for Java 7 when fix the issue with configuring bootstrap class.
// [options] bootstrap class path not set in conjunction with -source 1.6
- if (JavaVersion.current().isJava8Compatible()) {
+ // TODO(sebright): Fix warnings about -source 1.6 and -target 1.6 with Java 9.
+ if (JavaVersion.current().isJava8()) {
it.options.compilerArgs += ["-Werror"]
}
}