Thanks, the --refresh-dependencies switch helps.
But nevertheless it seems to be a bug. Once I change something in our commons library I run in this problem.
When using it as external dependency I see the *-sources.jar is downloaded to the cache into the source dir but the older version from the jar dir of the cache is selected to build.
Yes there is an explicit source dependency which we need in order to build our GWT stuff. This is unfortunately required by the gwt compiler.
The *-sources.jar is two times available in the cache. And one of them is in my case always outdated. Unfortunately the build selects always the outdated version. I guess either one of those copies should be dropped or both of them should be up-to-date.
I’ve configured the cache to always check if a newer version is available. But this doesn’t solve the problem. I would persistently need to build with --refresh-dependencies switch.
subprojects {
configurations.all {
resolutionStrategy.cacheDynamicVersionsFor 0, SECONDS
resolutionStrategy.cacheChangingModulesFor 0, SECONDS
}
}