[Update]migrate the project to gradle