Skip to content

Provide automatic inclusion of Multi-Release in MANIFEST.MF #449

@shollander

Description

@shollander

Shadow Version

4.0.3

Expected Behavior

If any dependencies included have the Multi-Release flag set to true in MANIFEST.MF, the shadow jar should include this entry.

Actual Behavior

Currently a manual process. Requires knowledge of all dependencies and manually adding required entry to MANIFEST.MF.

Background

Current versions of Java allow for multi-release jars to be created. However, in order for it to work, Multi-Release: true needs to be present in the manifest. One popular example of a multi-release jar is the Log4J API (org.apache.logging.log4j:log4j-api). See this stack overflow question for more details. It would be nice if the shadow plugin would automate this process.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions