In our team, for some reason, we will publish some our dependencies frequently without change version. for example, com.xxx.test:xxx:1.0.0。In other projects, we use these dependencies, we want to every build or refresh dependencies, these dependencies will be downloaded from our nexus repository not using local cache. We use ”–refresh-dependencies“ and cacheChangingModulesFor options, but they are not function and use local cache.
How to force download some dependencies with same version?
gradle version is 8.10
Thx
By default only ...-SNAPSHOT
versions are considered changing.
If you cannot use ...-SNAPSHOT
version, then you need to set changing
property on the dependency to true
, so that Gradle looks regularly for updates (or always when you set cacheChangingModulesFor
to 0`).