Skip to content

Relocation deletes resources from included (project?) dependencies. #61

@stephan-gh

Description

@stephan-gh

I want to include a subproject dependency (Core) in the shadow JAR of another subproject (App). The Core project just contains some classes used in the App project and a plain text file named TEST with some example text in it. The resulting Core JAR includes the original compiled classes and the TEST file correctly.
Now if I include the Core dependency in the App project without any relocation it copies the classes and resources correctly to the resulting shadow JAR, but if I relocate the core package to a package within the app package then the resources of the Core project are not included in the resulting JAR file (the TEST file is missing).

I don't know exactly how to explain the complete project structure so it's probably better if you take a look at the test project yourself: https://github.com/Minecrell/GradleTest

So basicly when I use relocation then the resources of the project dependency are not copied to the resulting JAR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions