Skip to content

Commit

Permalink
Update .travis.yml and dependencies to support build with JDK 11
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
  • Loading branch information
sczyh30 committed Nov 6, 2018
1 parent 3b60958 commit 3de817b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
7 changes: 7 additions & 0 deletions sentinel-adapter/sentinel-grpc-adapter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 3de817b

Please sign in to comment.