Migration to gradle