-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add support to buildsystem plugin to render dependencies in CG Manifest format #107
base: master
Are you sure you want to change the base?
Conversation
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.
Only one comment..
final String cgManifestPrettyJson = GSON.toJson(cgManifestJsonElement); | ||
|
||
// log the JSON to console | ||
System.out.println(cgManifestPrettyJson); |
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.
Should this be configurable?
// First resolve the configuration | ||
final ResolutionResult result = configuration.getIncoming().getResolutionResult(); | ||
// now render all dependencies in this configuration | ||
result.allDependencies(dependencyResult -> renderDependencyResult(configuration, dependencyResult)); |
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.
Somewhere there's a graph traversal... right? Looks like gradle handles that for you and just flattens the transitive list.
The plugin creates a custom task of type:
DependencyReportTask
that will render dependencies in CG Manifest format.