Find Spring stereotype classes not declared open
ProprietaryKotlin classes are final by default, but Spring needs a non-final target to create CGLIB proxies (which is how @Transactional, @Async, scope-proxied beans, etc. work). The kotlin-spring compiler plugin opens them automatically, but if it isn't applied — or the class is in a module that doesn't apply it — Spring's proxy machinery fails at runtime. Flag stereotype classes that aren't explicitly open for review.
org. openrewrite. kotlin. spring. FindOpenClassForSpring$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. spring. FindOpenClassForSpring$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.