I have an old project that am working at, I noticed that the .gradle folder has too many subfolders for each distribution of gradle I've changed in the past, is it safe to delete the old versions subfolders?
However, if you install/use that app again, the folders will recreate themselves. So the conclusion: Yes, you can delete the, if you do not use the apps associated with them.
gradle/caches directory holds the Gradle build cache. So if you have any error about build cache, you can delete it.
gradle file, located in the root project directory, defines dependencies that apply to all modules in your project. By default, the top-level build file uses the plugins block to define the Gradle dependencies that are common to all modules in the project.
You can safely delete the ~/. gradle directory. It is created by the Gradle wrapper to store and cache downloaded files, so it will just repopulate the folder with the files necessary for future builds. Note that if you made any changes yourself in that directory, you may need to keep those files, such as a ~/.
Inside the project you can find the .gradle
folder.
Inside you can find all settings and other files used by gradle to build the project. You can delete these files without problems. Gradle will recreate it.
Also these file are not committed and Version Control Systems. It means that when you checkout the project these files are not present on the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With