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

Add support for exporting/importing dependency information for multi-licensed modules #261

Open
erdi opened this issue Feb 28, 2023 · 2 comments

Comments

@erdi
Copy link

erdi commented Feb 28, 2023

Currently the only implementation of a DependencyDataImporter which ships with the plugin allows to import from xml. Unfortunately the XmlReportRenderer which can be used with it is lossy - it only exports information about a single license even for modules which are multi-licensed. It looks like JsonReportRenderer is capable of exporting information about multiple licenses per module but unfortunately there is no built-in importer for that format.

In the project I'm using this plugin on there are hundreds of modules. I want to be able to generate an aggregate report at the root. I know that I configure the plugin to apply the project to all subprojects but I don't want to - I want the plugin to generate reports for each submodule separately and then aggregate these because doing it in such smaller chynks will provide a higher chance of build cache hits.

@fsparv
Copy link

fsparv commented Apr 1, 2023

I don't thing the JSON reporter outputs more than one. I think it has the same problem as the XML one. (at least I only get one when I use it) - Oh just found the constructor nevermind. Docs on renderers could use help.

@erdi
Copy link
Author

erdi commented Apr 3, 2023

I believe that if you pass false as the second argument to JsonReportRenderer's constructor, onlyOneLicensePerModule, you will get more than one license per module for multi-licensed modules.

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

2 participants