Migrate to Scala 3

Proprietary

Rewrites Scala 2 source that Scala 3 no longer accepts, such as do-while loops, on top of the Scala 2.13 migration, and finds the constructs that need a manual change: existential types, DelayedInit, implicit definitions without an explicit type, _ type wildcards and XML literals. The Scala version in the build has to be changed separately.

org.openrewrite.scala.migrate.UpgradeToScala3
mod run . --recipe=org.openrewrite.scala.migrate.UpgradeToScala3

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