Remove a dependency classifier where the version matches
ProprietaryRemove a classifier from the Maven or Gradle declarations of a dependency, managed dependencies included, whose version matches, such as the jakarta classifier where a library stops publishing it. Meant to run after the upgrade to that version: a version in the same build file must match as the upgrade left it. A Maven dependency without a version follows the managed dependency that gives it one, and a version set in a parent or BOM of the repository that this recipe has not visited yet counts as moved by the upgrade, as does a property such a parent defines. A declaration whose version comes from outside the repository, or from a Gradle variable or BOM, keeps its classifier, and no version is ever added. A Gradle variantOf(libs.<alias>) { classifier(...) } loses the classifier, and becomes libs.<alias> when nothing else is left, where the version catalog of the repository sets a matching version for that library, or a version at all if this recipe has not visited the catalog yet, as the upgrade moves it there.
io. moderne. java. primefaces. RemoveDependencyClassifierRequired
The first part of a dependency coordinate groupId:artifactId:version. This can be a glob expression.
The second part of a dependency coordinate groupId:artifactId:version. This can be a glob expression.
The classifier to remove.
An exact version number or node-style semver selector the version of a declaration must match.
mod run . --recipe= io. moderne. java. primefaces. RemoveDependencyClassifier \
-P groupId= org. primefaces \
-P artifactId= primefaces \
-P classifier= jakarta \
-P version=16. xInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.