Dependency Management with Gradle - Part 1: Fundamentals

Опубликовано: 16 Октябрь 2024
на канале: Gradle
27,994
288

Whether you use a mono-repository or multi-repository approach for your sources, managing dependencies is central to productivity by reusing artifacts and ensuring a quality build. A single incorrect dependency can break existing code, introduce a vulnerability or simply prevent your project from building.

This class will introduce dependency management for Java.
It will help you understand the key concepts and give you the knowledge to tackle many of the common requirements and pitfalls you will likely encounter.

The topics covered include:

Declaring dependencies and the repositories you retrieve them from
Understanding what dependency configurations are
Using dependency versions to express requirements and compatibility
Using dependency constraints to control transitive dependency versions
Ensuring the same versions of dependency are used across projects within a build
Understanding the principles of variant-aware dependency management and the problems it solves
Discussing compatibility of Gradle’s dependency management with Apache Maven(™) and Apache Ivy(™)
Troubleshooting problems with dependencies

Create a Gradle and/or Maven Build Scan - https://scans.gradle.com/