Moved project to java 8