before_install:
 - chmod +x gradlew

to .travis.yml