plantuml-gradle-plugin
plantuml-gradle-plugin copied to clipboard
Take advantage of blacklist/whitelist feature of ClassGraph
To enumerate the classes, the plugin uses ClassGraph
. This class scanner supports filtering on package name.
If we use this, we could write: build.gradle
classDiagram {
packageName = "com.github.roroche"
outputFile = project.file('diagrams/class_diagram.plantuml')
ignoredPackages = [
"com.github.roroche"
]
}
ClassGraph
even allows wildcards on package names.
This would make it simple to exclude non-interesting parts of my applications.
+1. Currently one has to list each excluded class individually, which becomes unmanageable
For anyone reading this in 2023: I forked the plugin (and essentially rewrote it): https://plugins.gradle.org/plugin/io.gitlab.plunts.plantuml