Skip to content

Commit 2ac2ed8

Browse files
committed
feat: Categorize a couple of 'GPL-*' licenses with belonging exceptions
Signed-off-by: Frank Viernau <[email protected]>
1 parent 43b8646 commit 2ac2ed8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/curations/buildSrc/src/main/kotlin/ScanCodeLicenseDbClassifications.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ private val OVERRIDE_LICENSE_CATEGORIES = mapOf(
5858

5959
// ScanCode does not provide categories for pairs of licenses and their belonging exceptions. So, hard-code some:
6060
private val LICENSE_EXCEPTION_CATEGORIZATIONS = listOf(
61-
"Apache-2.0 WITH Swift-exception" to CATEGORY_PERMISSIVE
61+
"Apache-2.0 WITH Swift-exception" to CATEGORY_PERMISSIVE,
62+
"GPL-2.0-only WITH Classpath-exception-2.0" to CATEGORY_COPYLEFT_LIMITED,
63+
"GPL-2.0-or-later WITH Classpath-exception-2.0" to CATEGORY_COPYLEFT_LIMITED,
64+
"GPL-3.0-only WITH Classpath-exception-2.0" to CATEGORY_COPYLEFT_LIMITED,
65+
"GPL-3.0-only WITH Autoconf-exception-3.0" to CATEGORY_COPYLEFT,
66+
"GPL-3.0-or-later WITH Classpath-exception-2.0" to CATEGORY_COPYLEFT_LIMITED
6267
).map { (license, category) ->
6368
LicenseCategorization(
6469
id = SpdxSingleLicenseExpression.parse(license),

0 commit comments

Comments
 (0)