Use mainClass instead of main for JavaExec tasks
MSALThe 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. UseMainClassPropertymod run . --recipe= org. openrewrite. gradle. migrate. tasks. UseMainClassPropertyInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.