Skip to content

Is this now the recommended way to set dependency version numbers? gradle/libs.versions.toml? #644

Closed Answered by SimonMarquis
nathanmeade asked this question in Q&A
Discussion options

You must be logged in to vote

@nathanmeade yes, you can check the official Android docs:

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.
Source: https://developer.android.com/build/migrate-to-catalogs

Also, don't forget to close this discussion and mark it as resolved if it's …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by nathanmeade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants