Convert to gradle

Feel free to pull in or ignore.