Remove Provider.forUseAtConfigurationTime()

MSAL

Provider.forUseAtConfigurationTime() was deprecated in Gradle 7.4, which treats an external value read at configuration time as a configuration cache input without being told, and it is gone from Gradle 9: the call still runs on 8.14.4, and fails on 9.8.2. This recipe removes the call and keeps the provider it was made on, in Groovy and Kotlin build scripts and in the Java, Kotlin and Groovy sources of plugins. See the Gradle upgrade guide for more information.

org.openrewrite.gradle.migrate.providers.RemoveForUseAtConfigurationTime
mod run . --recipe=org.openrewrite.gradle.migrate.providers.RemoveForUseAtConfigurationTime

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.