Find top-level main functions wrapping SpringApplication.run
ProprietaryA top-level main(args: Array<String>) { SpringApplication.run(MyApp::class.java, *args) } collapses to one line with the reified runApplication<MyApp>(*args) builder. Flag the main entry point for migration.
org. openrewrite. kotlin. spring. FindMainMethodWithSpringApplicationRun$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindMainMethodWithSpringApplicationRun$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.