Fix broken Travis build due to JDK8 requirement