Change Gradle dependency group

Apache 2.0

Change the group of a specified Gradle dependency.

org.openrewrite.gradle.ChangeDependencyGroupId

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.

The new groupId to use.

Optional

The dependency configuration to search for dependencies in.

mod run . --recipe=org.openrewrite.gradle.ChangeDependencyGroupId \ -P groupId='com.fasterxml.jackson*' \ -P artifactId='jackson-module*' \ -P newGroupId=corp.internal.jackson

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