Use mainClass instead of main for JavaExec tasks

MSAL

The main property on JavaExec tasks was deprecated in Gradle 7.1 and removed in Gradle 9.0. Use the mainClass property instead. See the Gradle upgrade guide for more information.

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

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