-
-
Notifications
You must be signed in to change notification settings - Fork 102
Extended mapping to node attributes #267
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
Conversation
|
I'll take a look later today! |
vanniktech
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good. Regarding configuration cache, I'd love to have it but I have limited time available and can't dedicate much time here. I will always review PRs though!
| when { | ||
| dependency.moduleName.contains("x") -> BasicNodeType("#ABC123", Shape.EGG) | ||
| dependency.moduleName.contains("k") -> BasicNodeType("#DEF789", Shape.POINT) | ||
| // !dependency.moduleGroup.contains("kotlin") -> BasicNodeType("#000000", Shape.OCTAGON) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, forgot about that. Removed
|
Awesome, I'll have a mess around and see what I can come up with! |
Previously there was the
ProjectTargetenum to identify a project type based on the applied plugins, which is nice but I wanted to add some extra logic beyond just the plugin IDs for selecting these - plus the option for different node types.So I've mapped it into a more generic config option for both graph types, along with typealiases to make it a bit easier to work with.
Also added the same for dependency node types - with a null default implementation alongside an optional implementation which does a dumb check on the hash of the dependency group to come up with a common colour.
❓ Side question ❓
I've been poking around the repo trying to get it to work nicely with Gradle's configuration cache - I think it's doable but it will probably mean a significant project rework. Would you rather I did that separately on my fork?