Gradle Version Catalog: A Step-by-Step Guide — Part2

<p>In the Part 1 of this series, we have discussed about the theory behind Gradle Version Catalog and its role in the dependency management. If you haven&rsquo;t read it yet, I recommend to read it from&nbsp;<a href="https://medium.com/@bhoomivaghasiya/gradle-version-catalog-basic-understanding-part-1-eedae565268b" rel="noopener"><strong>here</strong></a>, for comprehensive understanding of this powerful tool.</p> <p>Here the step-by-step guide on on how to create and implement a Gradle version catalog:</p> <p>Before creating the file, make sure that you use&nbsp;<strong>Gradle 7.4 or newer</strong></p> <h1>Create the version catalog file</h1> <p>The version catalog file can be in either TOML or JSON format. In your root project&rsquo;s&nbsp;<code>gradle</code>&nbsp;folder, create a file called&nbsp;<code>libs.versions.toml</code>&nbsp;(By default, Gradle looks for the catalog in the<code>libs.versions.toml</code>&nbsp;so it&rsquo;s better to use default name)</p> <p><a href="https://medium.com/tag/android-development/recommended">Read More</a></p> <p>&nbsp;</p>