gradle --refresh-dependencies will refresh all Maven dependence(SNAPSHOT/Release)
this will slow down when Jenkins is compiled.
How to refresh SNAPSHOT library only
Search this forum please. This has been discussed many times.
You want so set the cache peruod of changing modules to zero.