Since we use Gradle 5.0 we have this issue, at least in Windows, which is known by the Gradle Community
There they suggest to pass --console plain to the command and some others suggest to add org.gradle.console=plain to gradle.properties file which is IMO a better (less invasive) solution.
I tested in Ubuntu and the problem does not occur there. I don't know for other *nix distributions.
Anyway, IMO there is also another advantage: you don't see a percentage in console, often confusing for newbies. That's why I prefer to add a gradle.properties file rather than modifying the gradlew.bat file (both works in WIndows).