Update dependency to Java 8