@@ -44,21 +44,21 @@ private val JSON_MAPPER = JsonMapper().apply {
44
44
propertyNamingStrategy = PropertyNamingStrategies .SNAKE_CASE
45
45
}
46
46
47
- private const val CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT = " cla"
47
+ private const val CATEGORY_CLA = " cla"
48
48
private const val CATEGORY_GENERIC = " generic"
49
49
private const val CATEGORY_UNKNOWN = " unknown"
50
50
51
51
private val OVERRIDE_LICENSE_CATEGORIES = mapOf (
52
- " LicenseRef-scancode-cncf-corporate-cla-1.0" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
53
- " LicenseRef-scancode-cncf-individual-cla-1.0" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
54
- " LicenseRef-scancode-google-cla" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
55
- " LicenseRef-scancode-google-corporate-cla" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
56
- " LicenseRef-scancode-jetty-ccla-1.1" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
57
- " LicenseRef-scancode-ms-cla" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
58
- " LicenseRef-scancode-newton-king-cla" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
59
- " LicenseRef-scancode-owf-cla-1.0-copyright" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
60
- " LicenseRef-scancode-owf-cla-1.0-copyright-patent" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT ,
61
- " LicenseRef-scancode-square-cla" to CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT
52
+ " LicenseRef-scancode-cncf-corporate-cla-1.0" to CATEGORY_CLA ,
53
+ " LicenseRef-scancode-cncf-individual-cla-1.0" to CATEGORY_CLA ,
54
+ " LicenseRef-scancode-google-cla" to CATEGORY_CLA ,
55
+ " LicenseRef-scancode-google-corporate-cla" to CATEGORY_CLA ,
56
+ " LicenseRef-scancode-jetty-ccla-1.1" to CATEGORY_CLA ,
57
+ " LicenseRef-scancode-ms-cla" to CATEGORY_CLA ,
58
+ " LicenseRef-scancode-newton-king-cla" to CATEGORY_CLA ,
59
+ " LicenseRef-scancode-owf-cla-1.0-copyright" to CATEGORY_CLA ,
60
+ " LicenseRef-scancode-owf-cla-1.0-copyright-patent" to CATEGORY_CLA ,
61
+ " LicenseRef-scancode-square-cla" to CATEGORY_CLA
62
62
).mapKeys { (license, _) -> SpdxSingleLicenseExpression .parse(license) }
63
63
64
64
private data class License (
@@ -162,7 +162,7 @@ private fun LicenseDetails.getCategories(): Set<String> {
162
162
mappedCategory,
163
163
// Include all licenses into the notice file to ensure there is no under-reporting by default.
164
164
" include-in-notice-file" .takeUnless {
165
- mappedCategory in setOf (CATEGORY_UNKNOWN , CATEGORY_GENERIC , CATEGORY_CONTRIBUTOR_LICENSE_AGREEMENT )
165
+ mappedCategory in setOf (CATEGORY_UNKNOWN , CATEGORY_GENERIC , CATEGORY_CLA )
166
166
},
167
167
// The FSF has stated that a source code offer is required for Copyleft (limited) licences, so
168
168
// include only these to not cause unnecessary effort by default.
0 commit comments