License Texts
ORT does provide the license texts for all SPDX licenses and for all license references from ScanCode. These license texts will be used when generating open source notices using the PlainTextTemplateReporter.
If you need a license text not provided by ORT, you can put it in the custom license texts directory.
By default, it is located at $ORT_CONFIG_DIR/custom-license-texts
.
Alternatively, you can pass a different location to the --custom-license-texts-dir
option of the reporter:
cli/build/install/ort/bin/ort report
-i [evaluator-output-dir]/evaluation-result.yml
-o [reporter-output-dir]
--custom-license-texts-dir $ORT_CONFIG_DIR/custom-license-texts
--report-formats PlainTextTemplate
The filenames in this directory need to match the identifier of the license. For example, to add the license text for the license "LicenseRef-custom-license" add it to a file with the same name.