Skip to content

Commit

Permalink
fix(evaluator): Apply repository license choices to the project
Browse files Browse the repository at this point in the history
This is a follow-up to e5e0f3f.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 13, 2023
1 parent ab808c9 commit fed0cd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evaluator/src/main/resources/rules/osadl.rules.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ val ruleSet = ruleSet(ortResult, licenseInfoResolver) {
-isExcluded()
}

val projectLicenseInfo = licenseInfoResolver.resolveLicenseInfo(project.id).filter(licenseView).filterExcluded()
val projectLicenseInfo = licenseInfoResolver.resolveLicenseInfo(project.id).filterExcluded()
.applyChoices(ortResult.getRepositoryLicenseChoices(), licenseView)

val outboundLicenses = projectLicenseInfo.licenses.map { it.license }

// Define a rule that is executed for each license of the dependency.
Expand Down

0 comments on commit fed0cd3

Please sign in to comment.