Port to gradle