AalekhMermaidTask
Exports the module dependency graph as Mermaid text.
Three files are written next to the HTML report:
aalekh-graph.mmd- the raw Mermaid definition, formermaid-clior manual embedding.aalekh-graph.md- the same graph inside a```mermaidfenced block, which renders as a diagram directly on GitHub. Commit it next to your code to keep a diffable, versioned graph.aalekh-graph.dot- the same graph as a Graphviz DOTdigraph, fordot -Tsvg, Gephi, and the wider graph-tooling ecosystem.
Run: ./gradlew aalekhMermaid
Caching
Output is fully determined by the extracted graph.json, so the task is CacheableTask.
Properties
Exclude globs from mermaid { exclude(...) }, applied after focus.
Focus globs from mermaid { focus(...) }; empty exports every module.
Markdown wrapper with a fenced mermaid block, written to aalekh-graph.md.
Raw Mermaid graph definition, written to aalekh-graph.mmd.
Neighbourhood hops to grow the focus set by, from mermaid { depth(...) }. Default 1.