Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take advantage of blacklist/whitelist feature of ClassGraph #19

Open
pinx opened this issue Oct 6, 2020 · 2 comments
Open

Take advantage of blacklist/whitelist feature of ClassGraph #19

pinx opened this issue Oct 6, 2020 · 2 comments

Comments

@pinx
Copy link
Contributor

pinx commented Oct 6, 2020

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.

@bertvanbrakel
Copy link

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

@Plunts
Copy link

Plunts commented Jan 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants