feat(licenses): add LicenseDB as source option for XML import workflows#3994
feat(licenses): add LicenseDB as source option for XML import workflows#3994zz10965-alt wants to merge 1 commit into
Conversation
- Add LicenseDBConnector to fetch licenses and obligations from LicenseDB REST API - Add licensedb.import.source config check in importAllSpdxLicenses() - Add licensedb.import.source config check in importAllOSADLLicenses() - Add licensedb.url and licensedb.access.token config properties - Add unit tests for LicenseDBConnector - Preserve existing SPDX/OSADL import as fallback for backward compatibility Fixes eclipse-sw360#3840 Signed-off-by: zz10965-alt <zz10965@nyu.edu>
|
@zz10965-alt
|
|
@ADITYA-CODE-SOURCE
Happy to collaborate! |
Summary
Add LicenseDB as an optional data source for XML-based license and obligation import workflows, replacing direct SPDX/OSADL imports when configured.
This PR is part of GSoC 2026: Integration of SW360 and LicenseDB.
Which issue is this pull request belonging to and how is it solving it?
Fixes [Feature] Update XML import workflows to use LicenseDB as source #3840 - Updates XML import workflows to optionally fetch from LicenseDB instead of SPDX/OSADL directly.
Did you add or update any new dependencies that are required for your change?
Yes - added
datahandler,spring-boot-starter-webflux, andmockwebserver(test only) tobackend-licenses-core/pom.xml.Issue
Fixes #3840
How To Test?
licensedb.import.source=licensedbinsw360.propertieslicensedb.urlto your LicenseDB instance URLlicensedb.access.tokenif authentication is requiredPOST /api/licenses/spdxLicensesPOST /api/licenses/osadlLicensesChecklist
Must: