I have several gradle's projects where in build.gradle I have defined their dependencies.
I am not able to understand why but for some reason after some time the jars download by gradle needs to be re-downloaded.
I open one of my projects in idea or eclipse (depend on the project) and all the dependencies are missing and I can't compile the project until I download them again.
Any reason for this?
The gradle cache has an expiration time?
CodePudding user response:
Yes, Gradle periodically cleans up the local cache and removes unused artifacts. It's a feature introduced with Gradle 4.10 Cleanup of caches and distributions. There is an open issue on GitHub to make retention times configurable: Make periodic cache cleanup retention times configurable #7018.
