Update .travis.yml and dependencies to support build with JDK 11

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
This commit is contained in:
Eric Zhao 2018-11-06 15:01:34 +08:00
parent 3b6095899a
commit 3de817be10
2 changed files with 15 additions and 2 deletions

View File

@ -3,8 +3,14 @@ language: java
sudo: required
dist: trusty
jdk:
- oraclejdk8
matrix:
include:
- jdk: oraclejdk8
env: BUILD_JDK=ORACLE_JDK_8
- jdk: oraclejdk11
env: BUILD_JDK=ORACLE_JDK_11
allow_failures:
- env: BUILD_JDK=ORACLE_JDK_11
after_success:
- bash <(curl -s https://codecov.io/bash)

View File

@ -39,6 +39,13 @@
<version>${grpc.version}</version>
<scope>provided</scope>
</dependency>
<!-- workaround for compile in JDK 11 -->
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>