We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddafd98 commit 4ee95e9Copy full SHA for 4ee95e9
plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/GatherLicenseTask.kt
@@ -500,6 +500,10 @@ open class GatherLicenseTask @Inject constructor(
500
)
501
JarFile(file).use { jar ->
502
val bundleLicense = jar.manifest.mainAttributes.getValue("Bundle-License")
503
+ if (bundleLicense.startsWith("http://") || bundleLicense.startsWith("https://")) {
504
+ // Ignore URLs here as it will fail during parsing
505
+ return
506
+ }
507
val license = bundleLicense?.substringBefore(";")?.let {
508
licenseExpressionParser.parse(it)
509
}
0 commit comments