Fixed the gradle config so that java 7 is targeted