update build file for new classpath, java 1.8, add spark dependency