Skip to content

Add a command line option to dump the license data #2738

Closed
@fviernau

Description

@fviernau

The OSS Review Toolkit needs to have all license IDs along with the respective license text for the ScanCode version it uses.
Currently it extracts it from the license data directory, see e.g. [1] [2]. So it depends on the directory structure as well as on the file formats of ScanCode license data. A ScanCode command line option for dumping

  1. licenseIDs
  2. corresponding texts
  3. corresponding license category (not needed now, only maybe nice to have IMO to enable using the categories within ORT by implementing a conversion to [3])

..to a JSON? file would help to remove that mentioned dependency.

[1] https://github.com/oss-review-toolkit/ort/blob/093a510aa8545cc61cc172d7a7a274f56df87d84/spdx-utils/build.gradle.kts#L62-L71
[2] https://github.com/oss-review-toolkit/ort/blob/093a510aa8545cc61cc172d7a7a274f56df87d84/spdx-utils/build.gradle.kts#L238-L343
[3] https://github.com/oss-review-toolkit/ort/blob/093a510aa8545cc61cc172d7a7a274f56df87d84/model/src/main/kotlin/licenses/LicenseClassifications.kt

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions