use gradle to build, and cleanup