use gradle to build example