Migrate to gradle

However, there is an intermittent test failure which is rather annoying :/