Update Travis CI configuration to build on Java 8.