aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorsebright <sebright@google.com>2018-02-22 11:54:17 -0800
committerGitHub <noreply@github.com>2018-02-22 11:54:17 -0800
commit1c00ee83a02e10407fcdd1d4e7d8d9f2f669540e (patch)
treee50cbd6c90c59cdefb5e2759e27ef904ceaee9c3 /build.gradle
parentca3e76f3890e8ca514a92c2786ef92e2c356be21 (diff)
parentf0e9b541d93cc3df67310aa47d12729824c31d5f (diff)
downloadplatform_external_opencensus-java-1c00ee83a02e10407fcdd1d4e7d8d9f2f669540e.tar.gz
platform_external_opencensus-java-1c00ee83a02e10407fcdd1d4e7d8d9f2f669540e.tar.bz2
platform_external_opencensus-java-1c00ee83a02e10407fcdd1d4e7d8d9f2f669540e.zip
Merge pull request #1016 from sebright/test-with-java-9
Test with oraclejdk9 on Travis.
Diffstat (limited to 'build.gradle')
-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"]
}
}