Find modules that exchange Commons Configuration 1.x types with a library

MSAL

Marks the source files of modules that call, override or extend a method or class of a library, a type that is not declared in the sources, whose declaration takes, returns, throws or extends a Commons Configuration 1.x type, such as TinkerPop 3.4's GraphFactory.open(Configuration), Archaius 1's ConfigurationManager.getConfigInstance() or Hadoop's MetricsSink.init(SubsetConfiguration). Such code has to keep using the types the library declares as long as the library is on 1.x, so moving it to Configuration 2 stops it from compiling. This recipe is intended to be used as a precondition for the Configuration 2 migration.

org.openrewrite.apache.commons.configuration.ModuleUsesCommonsConfiguration1Library

Optional

invertMarkingBoolean

If true, marks the files of modules that do not use such a library instead. Defaults to false.

mod run . --recipe=org.openrewrite.apache.commons.configuration.ModuleUsesCommonsConfiguration1Library

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