Update a Gradle plugin by id

Apache 2.0

Update a Gradle plugin by id to a later version defined by the plugins DSL. To upgrade a plugin dependency defined by buildscript.dependencies, use the UpgradeDependencyVersion recipe instead.

org.openrewrite.gradle.plugins.UpgradePluginVersion

Required

The ID part of plugin { ID }, as a glob expression.

Optional

An exact version number or node-style semver selector used to select the version number. You can also use latest.release for the latest available version and latest.patch if the current version is a valid semantic version. For more details, you can look at the documentation page of version selectors. Defaults to latest.release.

Allows version selection to be extended beyond the original Node Semver semantics. So for example,Setting 'version' to "25-29" can be paired with a metadata pattern of "-jre" to select Guava 29.0-jre

mod run . --recipe=org.openrewrite.gradle.plugins.UpgradePluginVersion \ -P pluginIdPattern=com.jfrog.bintray

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