Migrates to Apache POI 4.1.2

MSAL

Migrates to the last Apache POI 4.x release. This recipe modifies build files and makes changes to deprecated/preferred APIs that have changed between versions.

org.openrewrite.apache.poi.UpgradeApachePoi_4_1
mod run . --recipe=org.openrewrite.apache.poi.UpgradeApachePoi_4_1

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. Migrates to Apache POI 3.17
  2. Upgrade Gradle or Maven dependency versions org.apache.poi:poi*:4.x
  3. Upgrade Gradle or Maven dependency versions org.apache.poi:poi-ooxml-schemas:4.x
  4. Change type NPOIFSFileSystem to POIFSFileSystem
  5. Change type OPOIFSFileSystem to POIFSFileSystem
  6. Change type TextSegement to TextSegment
  7. Change type org.apache.poi.extractor.ExtractorFactory to org.apache.poi.ooxml.extractor.ExtractorFactory
  8. Change type Nullable to Optional