I want to know is it possible to configure Gradle to use one global build directory for all projects? I need this because I store all my projects in Google Driv
You could also go the opposite way. Replace the build folder with a global folder.
build foldermklink /d ...disk\path\to\project\build ...RAM\path\to\project (or ln in Unix)You can automate this in the clean task, so a gradlew clean cleans the folder contents and recreates the link.
With some quick testing it seems that Google Drive doesn't recognize directory in junction links on Windows. It'll sync the folders, but not the contents. Weirdly if I upload files to Drive into those folders, they're synced into the local copy. But, if I delete the synced file from the disk, the deletion is not synced back. It seems links cause Drive to be one way.