Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducing Gradle Version Catalog #635

Merged
merged 5 commits into from
Nov 11, 2024
Merged

Introducing Gradle Version Catalog #635

merged 5 commits into from
Nov 11, 2024

Conversation

baronhsieh2005
Copy link
Contributor

Added Gradle Version Catalog

  • Gradle Version Catalog is the newest way to manage dependencies in a clean, centralized, and organized manner. Essentially, the libs.versions.toml file would contain the list of dependencies in sections of versions (Where versions of each dependency is specified), libraries (section to define the dependencies), plugins, and bundles (where we can bundle dependencies with shared functionality and implement them all in one single line, which is pretty awesome and clean).

Version Catalog brings several advantages:

  • Clean and organized dependency list that allows easier modification/update
  • Bundles are so useful, even though I haven't implemented too much (want to discuss with you guys to group what with what), if we group them right, the dependencies sections would essentially just be a few lines if clear directions/indications of what they do.
  • Most google documentations also assume that users are using the version catalog (something I found out during the migration), so it would be easier to follow while also maintaining the newest guidelines for our gradle files.
  • Enables centralization for multi-module project (which is not a concern for us yet)

These are some documentations:

@baronhsieh2005 baronhsieh2005 merged commit bfa19f6 into main Nov 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants