Does not include Gradle dependency

Apache 2.0

A precondition which returns false if visiting a Gradle file which includes the specified dependency in the classpath of some scope. For compatibility with multimodule projects, this should most often be applied as a precondition.

org.openrewrite.gradle.search.DoesNotIncludeDependency

Required

The first part of a dependency coordinate com.google.guava:guava:VERSION. Supports glob.

The second part of a dependency coordinate com.google.guava:guava:VERSION. Supports glob.

Optional

Match only dependencies with the specified resolved version. Node-style version selectors may be used. All versions are searched by default.

Match dependencies with the specified scope. If not specified, all configurations will be searched.

mod run . --recipe=org.openrewrite.gradle.search.DoesNotIncludeDependency \ -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.