Using configureAll instead of all causes dependencyUpdates to fail silently
jimshowalter opened this issue · 4 comments
We tried to change this:
dependencyUpdates.resolutionStrategy { componentSelection { all {
to this:
dependencyUpdates.resolutionStrategy { componentSelection { configureEach {
because IntelliJ said to do that.
But with the change, dependencyUpdates doesn't output any updates, even when there are updates.
you can use -i
to see if an exception was logged. We pass your lambda into configuration.resolutionStrategy
so it's all Gradle's code instead of ours at that point.
fwiw, I don't see configureEach
in the Javadoc for componentSelection.
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method configureEach() for arguments [dependency_1m5034kjkgp6cdvjn4xjpdx3l$_run_closure4$_closure9$_closure10@31837593] on object of type com.github.benmanes.gradle.versions.updates.resolutionstrategy.ResolutionStrategyWithCurrent.
yep, sounds like you got bamboozled!