Skip to content

Also read license-mapping-override.json to allow overriding license mapping #682

@jakub-bochenski

Description

@jakub-bochenski

Change the code for resolveFuzzyMatching()

In addition to license-mapping.json also read license-mapping-override.json and use the values from this file with priority.

This will allow end users to define their own mapping.
You can easily override the classpath in Maven or Gradle.

Right now I'm building my own fork of cyclonedx-core-java, but I'm only interested in changing this file.
Allowing users to just provide this file on the classpath would be much easier than having to rebuild the whole library.

ATM I could just copy the license-mapping.json and change it and provide on the classpath, but

  • it easily gets out of sync with upstream
  • classpath order can be problematic

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