Skip to content

Ambiguous module reference: kotlinx.coroutines.core #3842

Open
@oryan-block

Description

Describe the bug

I'm trying to upgrade to v1.7.3 and add the modules to a module-info file but it seems that kotlinx-coroutines-core and kotlinx-coroutines-core-jvm cause a problem because they have the same module name (I think)

image

My pom dependencies:

        <dependency>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-coroutines-core</artifactId>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlinx</groupId>
            <artifactId>kotlinx-coroutines-jdk9</artifactId>
        </dependency>

This seems to happen because kotlinx-coroutines-core-jvm is a dependency of kotlinx-coroutines-jdk9 and it's module name is kotlinx-coroutines-core. At the same time kotlinx-coroutines-core has an implied module name which is its package name.
Am I importing these dependencies wrong?

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions