I have a problem with the Idea plugin on M7 (this is also a problem on M5 and M6 also). I want to generate the idea files so that the gradle dependency directory is replaced with a path variable.
So, in my case /Users/srs/.gradle directory is replaced by $GRADLE_HOME$. When I do not do any pathVariable replacement I see that the dependencies in .iml file is like this:
I reported this as GRADLE-1844, but no one has looked at it yet
In my own scripts, I’m using the withXml hook to manually replace all instances of gradle.gradleUserHomeDir with $GRADLE_USER_HOME$, and it works well enough.
Sounds like this will require a bug fix. Now that our cache layout has changed, we’ll probably have to change the IDEA plugin not to use canonicalPath/canonicalFile anywhere. You can either vote on this issue or send a pull request.