From b18f65fe0a10ff6425ca069c5a8787ad0c7631ca Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Fri, 4 Oct 2019 17:09:41 -0400 Subject: [PATCH] Allow building on Java 11 (and set Travis to build on OpenJDK 11) --- .travis.yml | 3 ++- api/build.gradle | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3d0c36340..ff0d0f19d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,5 @@ cache: - $HOME/.gradle/caches/ - $HOME/.gradle/wrapper/ jdk: - - openjdk8 \ No newline at end of file + - openjdk8 + - openjdk11 \ No newline at end of file diff --git a/api/build.gradle b/api/build.gradle index a9e466865..edf3dc198 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -73,6 +73,9 @@ javadoc { // Disable the crazy super-strict doclint tool in Java 8 options.addStringOption('Xdoclint:none', '-quiet') + + // Mark sources as Java 8 source compatible + options.source = '8' } publishing {