Use destinationFile instead of outputFile on WriteProperties tasks

MSAL

WriteProperties.outputFile is deprecated and removed in Gradle 9, where setting it fails. destinationFile replaces it. Only assignments directly in a block that names the WriteProperties type change. A string value is wrapped in file(..), because Gradle 8.14 does not accept a string for destinationFile. Reads are left alone, since destinationFile is a Provider rather than a File. See the Gradle upgrade guide for more information.

org.openrewrite.gradle.migrate.tasks.UseWritePropertiesDestinationFile
mod run . --recipe=org.openrewrite.gradle.migrate.tasks.UseWritePropertiesDestinationFile

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