Change Maven dependency classifier

Apache 2.0

Add or alter the classifier of the specified dependency.

org.openrewrite.maven.ChangeDependencyClassifier

Required

The first part of a dependency coordinate com.google.guava:guava:VERSION. This can be a glob expression.

The second part of a dependency coordinate com.google.guava:guava:VERSION. This can be a glob expression.

Optional

Classifier to apply to specified Maven dependency. May be omitted, which indicates that no classifier should be added and any existing scope be removed from the dependency.

changeManagedDependencyBoolean

This flag can be set to explicitly change the classifier in Maven management dependency section. Default false.

mod run . --recipe=org.openrewrite.maven.ChangeDependencyClassifier \ -P groupId=com.google.guava \ -P artifactId=guava

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