Migrating to gradle file