Gradle is not about speed right now.
Configuration and configuration.all are logically project-wide settings, but they are not compatible with each other.
Therefore, it must be described separately below.
configurations {
providedRuntime
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, "seconds"
}
The current version is 6.6, but it still looks like this.