Using gradle to build a java project