I’m getting CreateProcess error=206 when running a Grails3/Spring Boot project, probably due to the class path string built to call java.exe is getting too long, so I tried to change gradle artifacts location to something shorter than ~/.gradle and set GRADLE_USER_HOME, but it happens that gradle simply ignores it and still use ~/.gradle
Solved it here… After I deleted my GRADLE_USER_HOME folder and let gradle regenerate it, everything worked.
Previously I just copied ~/.gradle to %GRADLE_USER_HOME%