Updated to use gradle.