Skip to content

Commit e638fdc

Browse files
diabonasstefanbirkner
authored andcommitted
Fix building with OpenJDK 6 in Travis CI
OpenJDK 6 is no longer supported in the default build environment of Travis CI, so downgrade to Ubuntu 14.04 LTS (Trusty Tahr). This version is EOL (like Java 6), but seems to be the only way to continue building with OpenJDK 6. Even with the downgraded build environment, a manual workaround is necessary since the usual "jdk" key does not work.
1 parent b319ac4 commit e638fdc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# openjdk-6-jdk is not available in more recent Ubuntu versions
2+
dist: trusty
13
language: java
24
install:
35
# Download dependencies with JDK 8 because Maven Central supports
@@ -23,4 +25,10 @@ jdk:
2325
- oraclejdk9
2426
- oraclejdk8
2527
- openjdk7
26-
- openjdk6
28+
29+
# The jdk key does not work for openjdk6 in Travis CI any more, so
30+
# we manually install openjdk-6-jdk and set JAVA_HOME appropriately
31+
# (https://github.com/travis-ci/travis-ci/issues/9713)
32+
matrix:
33+
include:
34+
- env: JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64

0 commit comments

Comments
 (0)