Update Travis CI configuration for Gradle

Revise build tools to 21.1.2

Add the equivalent Maven build command

Add gradle check command
Merge pull request #615 from fadils/master

Update Travis CI configuration for Gradle