Automated Dependency Updates for Gradle
Renovate supports updating Gradle dependencies.
File Matching¶
By default, Renovate will check any files matching any of the following regular expressions:
\.gradle(\.kts)?$
(^|/)gradle\.properties$
(^|/)gradle/.+\.toml$
\.versions\.toml$
(^|/)versions.props$
(^|/)versions.lock$
For details on how to extend a manager's fileMatch
value, please follow this link.
Supported datasources¶
This manager supports extracting the following datasources: maven
.
References## Default config¶
{
"fileMatch": [
"\\.gradle(\\.kts)?$",
"(^|/)gradle\\.properties$",
"(^|/)gradle/.+\\.toml$",
"\\.versions\\.toml$",
"(^|/)versions.props$",
"(^|/)versions.lock$"
],
"timeout": 600,
"versioning": "gradle"
}
Additional Information¶
The gradle
manager uses a custom parser written in JavaScript, similar to many others managers.
It does not call gradle
directly in order to extract a list of dependencies.
Updating lockfiles¶
Updating lockfiles is done with ./gradlew :dependencies --wirte/update-locks
command.
This command can output excessive text to the console.
While running the command, the output to stdout is dropped when you run Renovate on most platforms other than Windows.
Open items¶
The below list of features and bugs were current when this page was generated on March 30, 2023.
Feature requests¶
- Support exclusive repositories #14208
- Add verification metadata update support to gradle manager #13575
- Support scan buildSrc's Dependencies? #13295
- Respect repositories defined as an ext property for Gradle #12988
- Support for Gradle composite builds #9410
- Add bumpVersion configuration option to gradle manager #7214
- Support custom init.gradle and/or gradle.properties #6894
- multimodule gradle (kotlin) with versions defined as constants in buildSrc #5480