Is there a way to refresh only changing dependencies?


(Ramon Nogueira) #1

I know ‘–refresh-dependencies’ refreshes all dependencies but is there a way to only refresh changing dependencies such as SNAPSHOT dependencies without refreshing all non-changing dependencies? On a high-latency connection, this can make a big difference.


(Peter Niederwieser) #2

Not from the command line, but you can set ‘configurations.all { resolutionStrategy.cacheChangingModulesFor 0, ‘seconds’ }’ (or whatever TTL you prefer).