android-templates icon indicating copy to clipboard operation
android-templates copied to clipboard

Managing project dependencies with Gradle version catalogs (TOML)

Open luongvo opened this issue 8 months ago • 0 comments

Why

Managing project dependencies with "Gradle version catalogs via a TOML file" has been introduced to the team quite a long time ago and is now official support and recommended. Plus, the latest generated project by Android Studio uses TOML as the default project dependencies management ✅

Gradle version catalogs enable you to add and maintain dependencies and plugins in a scalable way. Using Gradle version catalogs makes managing dependencies and plugins easier when you have multiple modules. Instead of hardcoding dependency names and versions in individual build files and updating each entry whenever you need to upgrade a dependency, you can create a central version catalog of dependencies that various modules can reference in a type-safe way with Android Studio assistance.

  • Migration guide: https://developer.android.com/build/migrate-to-catalogs

Who Benefits?

Developers

luongvo avatar May 28 '24 01:05 luongvo