No, running `gradle clean` only cleans the project-level cache as far as I can tell. It leaves the user-level cache untouched (as far as the issue is concerned). Not sure about that flag you mention though. I'll have to look into that.
Running "clean build" should do the trick though, it will delete the ./build directory.
Or do you mean the local maven repo?
Neither. The corrupted cache is in the user-level gradle cache directory, which is untouched by `gradle clean`.