From the course: Gradle for Java-Based Applications and Libraries
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Rendering the dependency tree
From the course: Gradle for Java-Based Applications and Libraries
Rendering the dependency tree
- [Instructor] As the project evolves over time, more and more dependencies might be added to support the project by reusing existing functionality. There are good reasons for wanting to get a better overview of the declared dependencies in the bulk script and their transitive dependencies they pull in automatically. Gradle offers the task named dependencies to render the full tree of dependencies for all configurations available in the project. At this time, the project declares a single dependency, Apache commons-cli. Let's render the dependency tree and see if we can find it. As you can see here, dependencies are grouped by configurations. We added the dependency with the gaff commons-cli:commons-cli:1.4 to the configuration called implementation. The dependency does not provide any transitive dependencies, otherwise you would see them rendered underneath. In the output of the command, you can also see that the same…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Mechanics of dependency management1m 59s
-
(Locked)
Declaring a dependency on an external library2m 38s
-
(Locked)
Rendering the dependency tree2m 36s
-
(Locked)
Declaring a project dependency3m 5s
-
(Locked)
Using the Maven Publish plugin to publish a library3m 7s
-
(Locked)
Challenge: Consuming an external dependency1m 44s
-
(Locked)
Solution: Consuming an external dependency3m 29s
-
(Locked)
-
-