Skip to content

Dedicated node for licenses #263

Description

@fnxpt

Currently with the current spec if we have n dependencies with the same license and if we need to include the license text this leads to a lot of duplicated text and huge increase on the file size.
As an example on the files we are generating if we do not include the license text the file is around 5MB, if we include the text we have more than 500MB per file.
Ideally we should have a dedicated node that could contain the details, so the dependencies contain the ID and this dedicated node could contain the details like the license text.

{
// ...
"components": [
    // ...
    {
      "type": "library",
      "bom-ref": "pkg:xxx",
      "publisher": "xxxx",
      "group": "com.xxx",
      "name": "xxx",
      "version": "x.x.x",
      // ....
      "licenses": [
        {
          "license": {
            "id": "Apache-2.0"
          }
        }
      ],
  }
],
     licenses: {
          "Apache-2.0": {
               "text" : "licence text",
          }
     },
}

see also: https://cyclonedx.slack.com/archives/CVA0G10FN/p1688979060505779

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions