reset-env: add clean to gradle command and exit if gradle fails.