Repository uses PDFBox 2

MSAL

Marks every source file of a repository in which a Maven or Gradle module declares a dependency on a PDFBox 2.x artifact, such as org.apache.pdfbox:pdfbox, no module resolves a PDFBox 1.x artifact, and no library it depends on, other than PDFBox and the repository's own modules, asks for PDFBox 2.x. The PDFBox 3 migration takes this as its precondition: it migrates code written for PDFBox 2 only, and raising PDFBox to 3.x where code still uses PDFBox 1.x, where a library such as Apache Tika 2 is compiled against PDFBox 2, or where PDFBox 2.x only comes through another library, would break that code.

org.openrewrite.apache.pdfbox.search.RepositoryUsesPdfBox2
mod run . --recipe=org.openrewrite.apache.pdfbox.search.RepositoryUsesPdfBox2

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