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.