The problem's cause was that Git on Windows converted the line endings of gradlew
from Unix style (LF) to Windows style (CRLF).
You can turn off that automatic conversion using git config core.autocrlf false
.
Setting the line endings of gradlew
back to Unix style fixed the problem. In Vim this is done using :set fileformat=unix
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…