-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguous module reference: kotlinx.coroutines.core #3842
Comments
Would it be okay for you to attach a reproducing project?
Could you please elaborate on what version you are upgrading from? |
@qwwdfsad try to checkout this branch: https://github.com/graphql-java-kickstart/graphql-java-tools/tree/upgrade-java-11 Upgrading from v1.6.4 |
btw if I replace these deps with |
@oryan-block Is this still an issue for you? The way I see it you should not add the extension I could not find the branch now to test. |
@mjovanc yes this is still a problem. This happens even if I only import |
In Maven projects, it's ok to depend on the |
@dkhalanskyjb it's not just the IDE, maven also fail to build because it can't see anything in the ambiguous module. Depending on
Not 100% sure but I do believe it's because both |
The issue arise because As a workaround, we can set some automatic module name explicitly using the |
@fzhinkin yep, just need to resolve that conflict. |
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
andkotlinx-coroutines-core-jvm
cause a problem because they have the same module name (I think)My pom dependencies:
This seems to happen because
kotlinx-coroutines-core-jvm
is a dependency ofkotlinx-coroutines-jdk9
and it's module name iskotlinx-coroutines-core
. At the same timekotlinx-coroutines-core
has an implied module name which is its package name.Am I importing these dependencies wrong?
The text was updated successfully, but these errors were encountered: