Skip to content

Relocate conflicting class files in fat jars #444

Open
@chippmann

Description

@chippmann

Especially with #441 there could be cases now where classes have the same fqName from different dependencies. If that's the case, they'll override each other, and only one of them will be present in the final main.jar fat jar. Which leads to nasty bugs.

Shadow jar has a feature where classes can be relocated to a different package path if they are conflicting, and automatically update the usages: https://imperceptiblethoughts.com/shadow/configuration/relocation/#automatically-relocating-dependencies

We should take advantage of this to prevent this issue

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