Fix travis oraclejdk8 build issue
morazow opened this issue · 0 comments
morazow commented
Recently Travis CI changed default operating system distribution to Ubuntu Xenial Xerus (16.04 LTS). This takes affect if the dist:
is not specified in the .travis.yml
file. However, in xenial, the oraclejdk8
JVM is not pre-installed.
Installing oraclejdk8
$ export JAVA_HOME=~/oraclejdk8
$ export PATH="$JAVA_HOME/bin:$PATH"
$ ~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"
Ignoring license option: BCL -- using GPLv2+CE by default
install-jdk.sh 2019-07-17
Expected feature release number in range of 9 to 14, but got: 8
The command "~/bin/install-jdk.sh --target "/home/travis/oraclejdk8" --workspace "/home/travis/.cache/install-jdk" --feature "8" --license "BCL"" failed and exited with 3 during .
Your build has been stopped.
Acceptance Criteria
- Build should be able to use both oraclejdk8 and openjdk8, use
dist: trusty
- Simplify the build matrix
References
- https://changelog.travis-ci.com/xenial-as-the-default-build-environment-99476
- https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment
- https://docs.travis-ci.com/user/reference/xenial/#jvm-clojure-groovy-java-scala-support
- https://travis-ci.community/t/install-of-oracle-jdk-8-failing/3038
- https://travis-ci.community/t/oracle-jdk-11-and-10-are-pre-installed-not-the-openjdk-builds/785