Skip to content

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.

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.

Open feature requests

  • multimodule gradle (kotlin) with versions defined as constants in buildSrc #5480
  • Support custom init.gradle and/or gradle.properties #6894
  • Add bumpVersion configuration option to gradle manager #7214
  • Unsupported dependency in gradle #8728
  • Support for Gradle composite builds #9410
  • Update PMD tool version #12424
  • Respect repositories defined as an ext property for Gradle #12988
  • Support scan buildSrc's Dependencies? #13295
  • Update version of Java Lombok inside the Gradle configuration #13333
  • Add verification metadata update support to gradle manager #13575
  • Support exclusive repositories #14208

Open bug reports

  • Renovate doesn't scans the latest version based on gradle multi module project using gradle.kts #12397
  • Gradle dependencies declared in build.gradle as ‘checkstyle’ with a variable as the version are not identified #17657
  • Gradle parser false positive dependency strings #19226

The above list of features and bugs were current when this page was generated on December 08, 2022.