Lets say my module is dependent on artifact ‘A.jar’ with version ‘1.0’. I run my build script, the artifact is downloaded from binary repository and is cached on my machine. If someone updated the same artifact ‘A.jar’ and uploaded it with same version ‘1.0’ in the binary repository. Running build script again does not download the latest artifact. It seems once the artifact for a given version is cached locally build scripts do not try to download it again.
Shouldn’t there be some check (may be based on timestamp and md5sum) if the cached artifact and that available in binary repository are same or not and if different download the latest one.
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’.
No, sorry. I should have pointed out that this is a new feature in Milestone 6. In M5, you’ll get no caching at all, so Gradle will check for a new version every time.