Some of my team was using git 1.9.4 and the associated git-bash console. This error occurred in their build
I use git 2.6.2 and its associated git-bash console. This error does not occur in my build.
Some team members use the DOS command line. The error occurs in their build.
I use a DOS command line, but I always configure it for a 1024/1024 buffer size. The error does not occur for me there.
(I am the author of a fresh new build at my company and apparently my computer was magically set up to work... Not the best when the team goes to adopt the new process and I have no idea what's happening to them!)
There's some curious interaction between Gradle and the output stream to the console...
use the --console plain gradle command line switch
If you use git + git-bash, upgrade to git 2.x.x (2.9.3 is current and works for me)
If you use DOS, try increasing your screen buffer size.(mine is 1024 x 1024)
this information was also added to GRADLE-3527