Skip to content

Missing classes when building with shadowJar with multiple Gradle modules #46

@AramMessdaghi9001

Description

@AramMessdaghi9001

Hi,
upon using the Gradle plugin in a multi module environment in combination with shadowJar, I get a ClassNotFoundException when referencing a class in a different module.
This is neither specific to the generated shadow jar, nor to coroutines. It is sufficient enough to run both plugins in combination.
E.g. running a simple Junit test won't work when both plugins are involved.
As I can't share the original project, I went through the effort to recreate the behavior in a sample project.
In the app module, I reference a function which is in the lib module. After build, at runtime, the class in the library module can't be found

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions