Migrate WordUtils to Apache Commons Text

MSAL

Migrate org.apache.commons.lang.WordUtils to org.apache.commons.text.WordUtils and add the Commons Text dependency.

org.openrewrite.apache.commons.lang.WordUtilsToCommonsText
mod run . --recipe=org.openrewrite.apache.commons.lang.WordUtilsToCommonsText

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

Recipe list

It runs these recipes, in this order.

  1. Add Gradle or Maven dependency org.apache.commons:commons-text:1.x
  2. Add Gradle or Maven dependency org.apache.commons:commons-text:1.x
  3. Add Gradle or Maven dependency org.apache.commons:commons-text:1.x
  4. Change type org.apache.commons.lang.WordUtils to org.apache.commons.text.WordUtils
  5. Rename package name org.apache.commons.lang.text to org.apache.commons.text
  6. Rename package name org.apache.commons.lang3.text to org.apache.commons.text
  7. Parameterize raw StrLookup subclasses