Update .travis.yml and dependencies to support build with JDK 11
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
This commit is contained in:
parent
3b6095899a
commit
3de817be10
10
.travis.yml
10
.travis.yml
|
|
@ -3,8 +3,14 @@ language: java
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
jdk:
|
matrix:
|
||||||
- oraclejdk8
|
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:
|
after_success:
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
@ -39,6 +39,13 @@
|
||||||
<version>${grpc.version}</version>
|
<version>${grpc.version}</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- workaround for compile in JDK 11 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.annotation</groupId>
|
||||||
|
<artifactId>javax.annotation-api</artifactId>
|
||||||
|
<version>1.2</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue