dev.dendrodocs.tool is a command-line tool for analyzing Java projects and generating structured JSON output. It forms an integral part of the DendroDocs ecosystem, providing an easy way to bridge the gap between your Java code and up-to-date, detailed documentation.
A command-line tool that analyzes Java projects and produces a JSON file that follows the schema defined in the DendroDocs Schema repository.
- JDK 21 or newer.
To install dev.dendrodocs.tool, you can fetch it directly via Maven:
mvn dependency:get -Dartifact="dev.dendrodocs:tool:LATEST:jar"
This will download the tool and store it in your local Maven repository.
Once installed, you can run the tool using the following command, in PowerShell:
java -jar "$env:USERPROFILE\.m2\repository\dev\dendrodocs\tool\0.1.0\tool-0.1.0.jar" --project "G:\DendroDocs\java-tool\" --output "java-tool.json" --pretty
This command will analyze the Java project located at G:\DendroDocs\java-tool\
, generate a pretty-printed JSON file named java-tool.json
, and store it in the current directory.
To quickly preview the first few lines of the generated JSON output, use the following PowerShell command:
Get-Content -Path "java-tool.json" -Head 8
Output
[ {
"FullName" : "dev.dendrodocs.tool.descriptions.ForEachDescriptionJsonTest",
"Fields" : [ {
"Name" : "mapper",
"Modifiers" : 132,
"Type" : "com.fasterxml.jackson.databind.ObjectMapper",
"Initializer" : "new ObjectMapper()"
} ],
This JSON output contains detailed descriptions of your Java classes, including fields, methods, types, and modifiers.
dev.dendrodocs.tool is part of the larger DendroDocs ecosystem. Explore DendroDocs to find more tools, libraries, and documentation resources that help you bridge the gap between your code and its documentation.
Contributions are welcome! Please feel free to create issues or pull requests.
This project is licensed under the MIT License.