change dependency from java 1.6 to java 1.7