Skip to content

Improve license file discovery #334

@SebastianFlothow

Description

@SebastianFlothow

I'm aware that discovering license files in Jars requires heuristics und thus is unlikely to ever be perfect; yet there are situations where it can be improved relatively easily. For example, in the case of openpdf-2.0.5.jar (com.github.librepdf:openpdf:2.0.5), the plugin discovers font-fallback/README.md (which is not a license file), but fails to discover META-INF/LICENSES.md.

Suggestions:

  • Make the set of license file basenames configurable
  • Add "licenses" (plural) to the default set
  • Maybe add logic to accept files with license-specific names such as APACHE-LICENSE-2.0.txt (though of course this might get hairy)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions