Change a Gradle dependency extension

Apache 2.0

Changes extension of an existing dependency declared in build.gradle files.

org.openrewrite.gradle.ChangeDependencyExtension

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.

An artifact extension.

Optional

The dependency configuration to search for dependencies in.

mod run . --recipe=org.openrewrite.gradle.ChangeDependencyExtension \ -P groupId='com.fasterxml.jackson*' \ -P artifactId='jackson-module*' \ -P newExtension=jar

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