Switch build to use gradle.