Chapter 5. Dependency management
This chapter covers
- Understanding automated dependency management
- Declaring and organizing dependencies
- Targeting various types of repositories
- Understanding and tweaking the local cache
- Dependency reporting and version conflict resolution
In chapter 3, you learned how to declare a dependency on the Servlet API to implement web components for the To Do application. Gradle’s DSL configuration closures make it easy to declare dependencies and the repositories to retrieve them from. First, you define what libraries your build depends on with the dependencies script. Second, you tell your build the origin of these dependencies using the repositories closure. With this information in place, Gradle automatically ...
Get Gradle in Action now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.