By default, Gradle treats a module version (eg “myorg:myproj:1.0”) as unchanging over time, allowing us to cache the module meta-data and artifacts indefinitely. If you have a module version that has content (meta-data or artifacts) that can change over time, you can mark the module as ‘changing’.
compile group: "group", name: "projectA", version: "1.1", changing: true
Normally, Gradle will still cache changing modules for a 24 hour period. You can configure this cache timeout using something like:
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
You can read more about dynamic versions and changing modules here.