Skip to content

Module kotlinx.serialization.core not found in module graph #496

Open
@05nelsonm

Description

@05nelsonm

kotlinx-datetime:core uses transitive static when expressing kotlinx.serialization.core in its module-info.java. This results in a compilation error for library consumers who do not have kotlinx.serialization.core as a dependency, but are also supporting JPMS.

> Task :{project-name}:compileKotlinJvm FAILED
e: Module kotlinx.serialization.core cannot be found in the module graph

I believe dropping the key word transitive (because kotlinx.serialization.core is not defined in kotlinx-datetime:core as an api dependency) would fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions