Update travis-ci configuration to use Java 8