Enhance graddle and maven config.