CHAPTER 6

image

Dependency Management

Software projects are rarely built in isolation. They either depend on internal projects or other open source libraries. This chapter looks at how Gradle helps you effectively manage these dependencies. You will learn about the different types of dependencies, as well as learn how to group dependencies and resolve dependency conflicts. You will also review repositories that store artifacts.

Declarative Dependency Management

Consider the scenario where you want to use Logback (http://logback.qos.ch) in your application for logging. A straightforward approach is to download the logback.jar file from Logback web site ...

Get Introducing Gradle 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.