Porting to gradle building system