Fixed issue when writing commercial license files

master
Robinson 2022-01-20 23:59:14 +01:00
parent 2d297736e0
commit 881d6ce83e
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
1 changed files with 2 additions and 2 deletions

View File

@ -201,8 +201,8 @@ internal open class LicenseInjector @Inject constructor(@Internal val extension:
flattenedLicenses.forEach {
val license = it.license
// DO NOT write license text/info for custom or unknown licenses
if (license != License.UNKNOWN && license != License.CUSTOM) {
// DO NOT write license text/info for custom/unknown/commercial/etc licenses (these have no license text files)
if (license.licenseFile.isNotEmpty()) {
val file = File(outputDir, license.licenseFile)
val sourceBytes = license.licenseBytes