Porting build to gradle. Prepatcher currently completely broken.Signed-off-by: Ross Allan <[email protected]> (commit: c862e95)