Fix Travis build

As recommended in http://joerglenhard.wordpress.com/2013/10/01/using-travis-ci-with-gradle-wrapper/