Rename package name in String literals

Apache 2.0

A recipe that will rename a package name in String literals.

org.openrewrite.java.ChangePackageInStringLiteral

Required

The package name to replace.

New package name to replace the old package name with.

mod run . --recipe=org.openrewrite.java.ChangePackageInStringLiteral \ -P oldPackageName=com.yourorg.foo \ -P newPackageName=com.yourorg.bar

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