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 d400938Copy full SHA for d400938
plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license/GatherLicenseTask.kt
@@ -500,7 +500,11 @@ open class GatherLicenseTask @Inject constructor(
500
)
501
JarFile(file).use { jar ->
502
val bundleLicense = jar.manifest.mainAttributes.getValue("Bundle-License")
503
- val license = bundleLicense?.substringBefore(";")?.let {
+ if (bundleLicense == null || 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
}
510
if (license != null) {
0 commit comments