Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DepView

Analyze calling dependencies in Java projects, and visualize them in a dependency graph.

English | 简体中文

Dependency graph

Try the interactive demo: nettee.io/depview

If you want to know more about this tool, you can read my blog post.

✨ Features

  • Visualize calling dependencies in Java projects
  • Help understand the structure of new projects, especially those with little documentation
  • Help adjust package structure according to connections between classes

🚀 Quick Start

This project targets Java 8.

Write a configuration file for the project that you want to analyze. Follow the examples in the conf-example/ directory.

Build and run DepView:

export JAVA_HOME=/path/to/jdk8
export PATH="$JAVA_HOME/bin:$PATH"

mvn clean package
java -jar target/depview-0.2-SNAPSHOT.jar <CONF_FILE>

The generated dependency output is in output/<PROJECT_NAME>/. To view the dependency graph:

python3 -m http.server 8000 --bind 127.0.0.1 -d output/<PROJECT_NAME>

Open http://localhost:8000 in your browser.

Example on macOS

If Java 8 is installed but not the default Java on macOS:

export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"

mvn clean package
java -jar target/depview-0.2-SNAPSHOT.jar conf-example/depview-mac.conf
python3 -m http.server 8000 --bind 127.0.0.1 -d output/DepView

About

View code dependencies in a Java project

Topics

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages