Appendix D. Analyzing a project’s dependencies with JDeps

JDeps is the Java Dependency Analysis Tool, a command-line tool that processes Java bytecode—.class files or the JARs that contain them—and analyzes the statically declared dependencies between classes. The results can be filtered in various ways and can be aggregated to the package or JAR level. JDeps is also fully aware of the module system.

All in all, it’s a useful tool for examining the various sometimes-nebulous graphs I talk about so much in this book. More than that, it has concrete applications when migrating and modularizing a project, like analyzing its static dependencies on JDK-internal APIs (section 7.1.2), listing split packages (section 7.2.5), and drafting module descriptors ...

Get The Java Module System 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.