Revert "switch to gradle; switch language level to java7"

This reverts commit c95142da811658d31379890bb30007cdd95c26fe.