Update dependency to java 8