Flag gRPC client stub injections that need @ImportGrpcClients
ProprietarySpring gRPC 1.0 auto-scanned generated proto stubs and registered them as client beans; Spring gRPC 1.1 no longer does, so each stub must be imported explicitly with @ImportGrpcClients. The correct stub list and annotation location are application-specific, so rather than editing code this recipe adds a TODO comment to classes that inject a gRPC client stub (a field or constructor/method parameter whose type extends io.grpc.stub.AbstractStub) so the annotation can be added by hand.
io. moderne. java. spring. boot4. FlagGrpcClientStubsForImportGrpcClientsmod run . --recipe= io. moderne. java. spring. boot4. FlagGrpcClientStubsForImportGrpcClientsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.