Migrate from DelayedInit/App to @main

Proprietary

Finds classes or objects extending DelayedInit or App. The DelayedInit trait was deprecated in Scala 2.13 and removed in Scala 3. Use @main annotation instead.

org.openrewrite.scala.migrate.scala3.MigrateDelayedInit
mod run . --recipe=org.openrewrite.scala.migrate.scala3.MigrateDelayedInit

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