JDeps is a Java command-line tool that analyzes statically declared dependencies in bytecode (.class files and JARs). This tutorial covers how to run JDeps on a project, include transitive dependencies via --class-path and -recursive, filter and aggregate output at package or JAR level, generate .dot diagrams with Graphviz, drill into class-level dependencies, and use module-system-aware options like --module-path, --jdk-internals, and --generate-module-info for Java 9 migration and modularization.
Table of contents
▚ Code Along▚ Getting To Know JDeps▚ Including Dependencies▚ Configuring JDeps' Output▚ Drilling Deeper▚ JDeps And Modules▚ ReflectionSort: