Add support for building with Gradle.

The SBT support will be obsolete soon.