Question moved from https://github.com/open-license-manager/open-license-manager/issues/84
I have several projects and each project has several libraries. I would like to control the license at library scale.
How should I do that? Do I need to generate one license file for each library of each project?
Hi Arnaud,
I guess you want different licenses for each library because you want to have different functions in your software based on the fact that the library is licensed or not.
So one project of yours (group of library) = one licensecc project = one private-public key pair.
Then you can explore something called product-name (lccgen parameter --product-name
). Indeed you need to issue one license for every project for every library for every user.
Luckily licenses can be concatenated in the same file... so you can concatenate all together and send them to your client. You can use a script to do this tedious operation.
your license file may look like:
[library1]
.....
[library2]
...
and to verify a specific product name well... there is a parameter 'project_name' (i need to rename it) in the api...
I'll try to document this process and make an example.
$ lccgen project init -n MyFramework -t licensecc/src/templates
$ lccgen license issue -p MyFramework -n MyProduct -o product.licbase64not recognized value errorproduct-namenot recognized value errorLicense written
BTW, I started a PR to solve this issue.