Migrate datasource contracts only without lifecycle registrations

Proprietary

Converts datasource code only when the recipe run has no retained lifecycle registrations or static factory builds. Otherwise preserves ManagedDataSource types, factory build chains and signatures and their MetricRegistry build arguments across source files for explicit migration of the same instance to Spring lifecycle hooks.

io.moderne.java.dropwizard.boot.datasource.MigrateDataSourcesWithoutLifecycleRegistration
mod run . --recipe=io.moderne.java.dropwizard.boot.datasource.MigrateDataSourcesWithoutLifecycleRegistration

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