Modify Gradle build script to produce a fat JAR.

Related to issue #73 - This PR is a patch of build.gradle to make sure that
one can produce a fat JAR, with the required dependencies included in the archive.

Please note that the preferred way to make an artifact is - `gradle build` (not `gradle jar` directly).