Fix Travis integration with Gradle.