The below script to do dynamic caching for 60 seconds works fine when put in the project build.gradle file individually, but does not work when put under the init.d file
cacheDynamicVersionsFor 60, ‘seconds’
cacheChangingModulesFor 0, ‘seconds’
The intention here is if a project uses a specific gradle version while building dependency, caching will prevent talking to server. + dynamic version number, default behaviour is to check the new version every [whatever time configured]. If there is a need to roll out a hot fix, build does not pick up every [whatever time defined].