Modifying guard clause to install gradle