Dependency resolution issues with configurations.all {resolutionStrategy.eachDependency {…}}

When building the attached Gradle Wrapper 5.6 composite build, I am experiencing 2 odd issues:

  1. configurations.all {resolutionStrategy.eachDependency {…}} runs once for guava in the plugin, but three times for guava in the composite

  2. The guava dependency in the composite works fine even if I don’t specify a version, but I get an error if I remove the version from the guava dependency in the plugin

Does anyone know why either or both of these 2 oddities occur?

configurations.all-resolutionStrategy.eachDependency.zip (59.0 KB)