Updated to use Gradle.