Migrate project to gradle