diff --git a/docs/usage/java.md b/docs/usage/java.md index bec5049480a017c5c46a44c07a0e568b62b4875f..e3de7de7ffcca0c2076e46be404f82e2ad3301ed 100644 --- a/docs/usage/java.md +++ b/docs/usage/java.md @@ -46,6 +46,18 @@ Renovate does not support: - Catalogs with custom names that do not end in `.toml` - Catalogs outside the `gradle` folder whose names do not end in `.versions.toml` (unless overridden via [`fileMatch`](./configuration-options.md#filematch) configuration) +### Gradle Plugin Support + +Renovate can also update [Gradle plugins](https://docs.gradle.org/current/userguide/plugins.html). +It supports the `id(<pluginId>)` syntax as well as the `kotlin(<kotlinPluginId>)` shortcut for `id(org.jetbrains.kotlin.<kotlinPluginId>)`. + +For specifying `packageRules` it is important to know how `depName` and `packageName` are defined for a Gradle plugin: + +- The `depName` field is equal to `<pluginId>` +- The `packageName` field is equal to `<pluginId>:<pluginId>.gradle.plugin` + +This is a direct consequence of the [Plugin Marker Artifact](https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_markers) naming convention. + ## Gradle Wrapper Renovate can update the [Gradle Wrapper](https://docs.gradle.org/current/userguide/gradle_wrapper.html) of a project.