Use Maven instead of Gradle.

There is a bug with the Gradle support on Travis CI with Orcle JDK 8: https://github.com/travis-ci/travis-ci/issues/1602