updateWhen

abstract fun updateWhen(predicate: (Project) -> Boolean)

When the predicate returns true, remapping the dependencies.

By default, only when the dependency declaration changed, will the mapped dependency jar be regenerated. But please note that the code block change like of format or SearchDeclaration.filter will not be recorded. In this case, run the dependencyMapperCleanup task (./gradlew dependencyMapperCleanup) of project manually and synchronize gradle.

See also