Switch to the gradle build system