Package org.spdx.sbom.gradle.utils
Class SpdxLicenses
java.lang.Object
org.spdx.sbom.gradle.utils.SpdxLicenses
-
Method Summary
Modifier and TypeMethodDescriptionorg.spdx.library.model.v2.license.AnyLicenseInfoasSpdxLicense(List<PomInfo.LicenseInfo> licenses) static SpdxLicensesnewSpdxLicenes(org.gradle.api.logging.Logger logger, org.spdx.library.model.v2.SpdxDocument doc, SpdxKnownLicenses spdxKnownLicenses)
-
Method Details
-
newSpdxLicenes
public static SpdxLicenses newSpdxLicenes(org.gradle.api.logging.Logger logger, org.spdx.library.model.v2.SpdxDocument doc, SpdxKnownLicenses spdxKnownLicenses) -
asSpdxLicense
public org.spdx.library.model.v2.license.AnyLicenseInfo asSpdxLicense(List<PomInfo.LicenseInfo> licenses) throws org.spdx.core.InvalidSPDXAnalysisException - Throws:
org.spdx.core.InvalidSPDXAnalysisException
-