File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tools/curations/buildSrc/src/main/kotlin Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ private val JSON_MAPPER = JsonMapper().apply {
44
44
propertyNamingStrategy = PropertyNamingStrategies .SNAKE_CASE
45
45
}
46
46
47
+ private const val CATEGORY_COPYLEFT = " copyleft"
48
+ private const val CATEGORY_COPYLEFT_LIMITED = " copyleft-limited"
47
49
private const val CATEGORY_CLA = " cla"
48
50
private const val CATEGORY_GENERIC = " generic"
49
51
private const val CATEGORY_PERMISSIVE = " permissive"
@@ -177,7 +179,9 @@ private fun addExtraCategories(category: String): Set<String> =
177
179
},
178
180
// The FSF has stated that a source code offer is required for Copyleft (limited) licences, so
179
181
// include only these to not cause unnecessary effort by default.
180
- " include-source-code-offer-in-notice-file" .takeIf { category in setOf (" copyleft" , " copyleft-limited" ) }
182
+ " include-source-code-offer-in-notice-file" .takeIf {
183
+ category in setOf (CATEGORY_COPYLEFT , CATEGORY_COPYLEFT_LIMITED )
184
+ }
181
185
)
182
186
183
187
private fun getLicenseClassifications (licenseDetails : Collection <LicenseDetails >): LicenseClassifications {
You can’t perform that action at this time.
0 commit comments