Find @Required annotations
Proprietary@Required was deprecated in Spring 5.1 and removed in 6.0 — its only purpose was to mandate setter injection. The modern equivalent is mandatory constructor injection, which is enforced by Kotlin's non-null types.
org. openrewrite. kotlin. spring. FindRequiredOnSetter$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindRequiredOnSetter$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.