Replace DataSourceFactory build chain with @Autowired DataSource
ProprietaryReplaces DataSourceFactory.build(MetricRegistry, String) variable declarations with @Autowired DataSource fields. Spring Boot auto-configures the DataSource from spring.datasource.* properties. Note: connection pool metrics previously wired via MetricRegistry require spring-boot-starter-actuator for equivalent observability.
io. moderne. java. dropwizard. boot. datasource. RemoveDataSourceFactoryBuildChainmod run . --recipe= io. moderne. java. dropwizard. boot. datasource. RemoveDataSourceFactoryBuildChainInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.