Updating Gradle build configuration to not crash on Travis