Is possible to use a specific path instead of Gradle cache folder?


I need to do an Open Source review related to my project and for this, I need to have an unique folder that contains all dependencies from my project. So, is possible to set a specific folder for Gradle to save all dependencies downloaded instead of to use the cache folder?

Thank you.

Best Regards,


You can set the Gradle User home to another directory (-g), but you might want to look at some different options:

A Gradle plugin that produces a report for the licenses used in the project:

A custom task to copy all dependencies into a specific directory on demand.