How to control dependency caching for published catalog dependencies?

Analogous to Learning the Basics, is there a way to control dependency caching for declared external catalog dependencies?

Something like:

configurations.all {
    resolutionStrategy.cacheDynamicVersionsFor 10, 'minutes'
}

that can be applied here:

//In settings.gradle

dependencyResolutionManagement {
    repositories {
        //...
    }

    versionCatalogs {
        someCatalog {
            from("org.sample:catalog:1.+")
        }
    }
}

Thanks in advance for any help!

1 Like