Automated Dependency Updates for Gradle Lite

Renovate supports updating Gradle Lite dependencies.

Enabling

Gradle Lite functionality is currently in beta testing so you must opt in to test it out. To enable it, add a configuration like this to either your bot config or your renovate.json:

{
  "gradle-lite": {
    "enabled": true
  }
}

If you encounter any bugs, please raise a bug report. If you find that it works well, then feedback on that would be welcome too.

File Matching

By default, Renovate will check any files matching any of the following regular expressions:

(^|/)gradle.properties$
\.gradle(\.kts)?$

For details on how to extend a manager's fileMatch value, please follow this link.

Additional Information

gradle-lite is an an alternate manager for Gradle, and is written in JavaScript. The main benefit of gradle-lite is that it doesn't need to invoke the gradle tool from the command line in order to extract the dependencies.

To enable gradle-lite:

{
  "extends": [":enableGradleLite"]
}

To disable the original gradle manager if gradle-lite satisfies all requirements:

{
  "extends": [":switchToGradleLite"]
}

Feedback for this manager would be welcome as we would like to switch it to be the default manager for Gradle soon.

gradle-lite supports the following version definition strategies:

  • Version defined as a plain string in a *.gradle file, for example: "org.springframework.boot:spring-boot-starter-web:2.5.1"

  • Version defined as a local variable:

  • In build.gradle:

    def springBoot='2.5.1' ... "org.springframework.boot:spring-boot-starter-web:$springBoot"

  • Version defined as a variable in the accompanying *.properties file:

  • In gradle.properties: springBoot=2.5.1
  • In build.gradle: "org.springframework.boot:spring-boot-starter-web:$springBoot"

Variables defined in other custom locations are not supported.

See the Gradle documentation for details on defining variables.