Exclude Maven dependency
Apache 2.0Exclude specified dependency from any dependency that transitively includes it.
org. openrewrite. maven. ExcludeDependencyRequired
The first part of a dependency coordinate com.google.guava:guava:VERSION.
The second part of a dependency coordinate com.google.guava:guava:VERSION.
Optional
Match dependencies with the specified scope. If you specify compile, this will NOT match dependencies in runtime. The purpose of this is to be able to exclude dependencies that should be in a higher scope, e.g. a compile dependency that should be a test dependency.
mod run . --recipe= org. openrewrite. maven. ExcludeDependency \
-P groupId= com. google. guava \
-P artifactId= guavaInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.