Convert managed dependencies to runtime dependencies

Apache 2.0

This recipe processes Maven POMs, converting all <dependencyManagement> entries into runtime scoped <dependencies> entries. Import scoped BOMs (like jackson-bom) are left unmodified in <dependencyManagement>. Some style guidelines prefer that <dependencyManagement> be used only for BOMs. This maintain that style while avoiding introducing new symbols onto the compile classpath unintentionally.

org.openrewrite.maven.ManagedToRuntimeDependencies
mod run . --recipe=org.openrewrite.maven.ManagedToRuntimeDependencies

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