Switch build system from Maven to Gradle.

Gradle has cleaner syntax and better support of local jar library.