Convert managed dependencies to runtime dependencies
Apache 2.0This 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. ManagedToRuntimeDependenciesmod run . --recipe= org. openrewrite. maven. ManagedToRuntimeDependenciesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.