converted to gradle script