'File name too long' error when building Spring with Gradle

gradle, spring

Solution

It seems that this error occurs when using an encrypted home directory. I've set `GRADLE_USER_HOME` to an unencrypted directory and everything works fine.

Problem

I tried to build Spring from source using: `./gradlew install` It fails with: ``` /home/dk/.gradle/caches/1.12/scripts/build_68eiq5ktt9740a7l1bofab8a9a/ProjectScript/no_buildscript/classes/build_68eiq5ktt9740a7l1bofab8a9a$_run_closure27_closure138_closure139_closure140_closure141_closure142_closure143_closure144_closure146_closure147.class (File name too long) ``` This was reported earlier but should have been fixed in Gradle 0.9.1. However I still have this error with Gradle 1.12. I'm using Ubuntu 14.04 with an ext4 filesystem. What's the recommend workaround for this?

Original source