Skip to content

Inconsistency between Jar Manifest class-path and dependencies #852

@jbartok

Description

@jbartok

While investigating a Gradle issue when using the Plugin Publish plugin together with the Shadow Plugin, we found an inconsistency in the Shadow plugin's code.

Our solution for it is just a workaround, we believe it would be good to fix the root cause, which is that while the gradleApi() is excluded as a dependency it is not excluded when the Jar Manifest class-path is being built. It should instead work as the java-gradle-plugin works.

Shadow Version

Latest.

Gradle Version

Not relevant.

Content of Shadow JAR (jar tf <jar file> - post link to GIST if too long)

See linked Gradle issue above. The problem is observed in the Manifest file of the Jar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions