Configure buildSrc cache directory (not project cache directory)

Hey Gradle community!

It is fairly easy to change the project cache directory with the --project-cache-dir command line switch, but I am trying to update the cache directory for buildSrc. This is always <projectDir>/buildSrc/.gradle, but I would like to make the source directory read only (in a CI build system, for example).

Consequently, I have moved all of the project (and sub project) cache directories using --project-cache-dir, which is great. However, I have not determined a means (documented or otherwise, perhaps via some init script magic?) of changing this directory for buildSrc.

Does anyone know if this is possible?

I have the same question as Ted Smith.