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.license.AnyLicenseInfoasSpdxLicense(List<PomInfo.LicenseInfo> licenses) static SpdxLicensesnewSpdxLicenes(org.gradle.api.logging.Logger logger, org.spdx.library.model.SpdxDocument doc, SpdxKnownLicenses spdxKnownLicenses)
-
Method Details
-
newSpdxLicenes
public static SpdxLicenses newSpdxLicenes(org.gradle.api.logging.Logger logger, org.spdx.library.model.SpdxDocument doc, SpdxKnownLicenses spdxKnownLicenses) throws org.spdx.library.InvalidSPDXAnalysisException - Throws:
org.spdx.library.InvalidSPDXAnalysisException
-
asSpdxLicense
public org.spdx.library.model.license.AnyLicenseInfo asSpdxLicense(List<PomInfo.LicenseInfo> licenses) throws org.spdx.library.InvalidSPDXAnalysisException - Throws:
org.spdx.library.InvalidSPDXAnalysisException
-