Remove Gradle dependency exclusion

Apache 2.0

Removes exclude declarations of the given dependency from Gradle build scripts, the inverse of ExcludeDependency. Covers excludes on a dependency declaration and on configurations, in both the Groovy and Kotlin DSL. An exclude that leaves out the group also matches, as it excludes the given artifact as well. An exclude of a whole group only matches when the artifact is left out, as removing it would bring back every other module of the group too. A closure the removal leaves empty is removed too.

org.openrewrite.gradle.RemoveExclusion

Optional

The group of the excluded dependency. If omitted (or *), excludes of the artifact from any group are removed. Partial wildcards are not supported.

The module of the excluded dependency. If omitted (or *), excludes of any module in the group are removed, including those of the whole group. Partial wildcards are not supported.

mod run . --recipe=org.openrewrite.gradle.RemoveExclusion

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