The directions below will help you move the Grails user work and cache directory to a different location.
Why?
Sometimes your default “primary drive” may be running out of space and you need to move your workspace else where.
How?
- Create a file called “settings.groovy” under “C:/Users/.grails” directory.
- Edit this file and add the following line:
grails.work.dir="D:/grailswork"
- Make sure that the defined folder exists.
- Remove all other content, files and folders in the “.grails” folder.
Your are all set

THANK YOU. I had tried setting this via an environment variable, I tried changing lines in idea.properties…this is the ONLY THING that finally got IntelliJ to quit trying to write this stuff to my remote fileshare. I just shared this with the rest of my teammates as I know I’m not the only one who struggled with this.