update gradle config to support only java 1.7+