Search code examples
androidgradledependencies

How to know if there is a dependency update available when using Gradle Version Catalog?


My project is now using a Version Catalog for all its Gradle modules and now using the type safe declaration of dependencies in its build.gradle files. Sadly, I no longer get any suggestions from the IDE when there is an update available for a specific dependency.

What is the best approach to work out whether there is an update available for any of the dependencies instead of checking manually one by one?


Solution

  • My recommendation is to use the gradle-versions-plugin or the se.ascp.gradle.gradle-versions-filter extension of it. Both add an additional gradle task dependencyUpdates to your project that will tell you which version updates are available.

    It works fine in combination with the new versions catalog feature that you mentioned. I am using it too.