plantuml-gradle-plugin icon indicating copy to clipboard operation
plantuml-gradle-plugin copied to clipboard

Take advantage of blacklist/whitelist feature of ClassGraph

Open pinx opened this issue 3 years ago • 2 comments

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.

pinx avatar Oct 06 '20 21:10 pinx

+1. Currently one has to list each excluded class individually, which becomes unmanageable

bertvanbrakel avatar Apr 08 '21 05:04 bertvanbrakel

For anyone reading this in 2023: I forked the plugin (and essentially rewrote it): https://plugins.gradle.org/plugin/io.gitlab.plunts.plantuml

Plunts avatar Jan 02 '23 18:01 Plunts