Skip to content
This repository has been archived by the owner on Nov 5, 2022. It is now read-only.

Commit

Permalink
Travis CI: Downgrade Bazel to 0.22.0
Browse files Browse the repository at this point in the history
Recent Bazel releases ship with embedded OpenJDK.
Bazel release 0.22.0 is the last release to use OpenJDK 9.
Subsequent Bazel releases ship with OpenJDK 11.

Android SDK manager is not compatible with JDK 11, since it relies
on the package javax.xml.bind.annotation, formerly provided by
Java EE and still accessible via modules in JDK 9. This no
longer works in JDK 11, which removes Java EE modules.

A short-term workaround would be to side-load JAXB, e.g. fetching
it from a Maven coordinate and setting up the appropriate CLASSPATH.

Instead we'll aim for the longer-term fix: wait for the Android SDK
tools to catch up to Java 11 (or ship with the required dependencies).
  • Loading branch information
mjansche committed May 29, 2019
1 parent d598f41 commit 9a7c2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ branches:
env:
global:
- ANDROID_SDK=4333796
- BAZEL=0.26.0
- BAZEL=0.22.0
- JAVA_OPTS='-XX:+IgnoreUnrecognizedVMOptions --add-modules java.se.ee'

matrix:
Expand Down

0 comments on commit 9a7c2c6

Please sign in to comment.