-
Notifications
You must be signed in to change notification settings - Fork 747
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
JPMS issue with Moshi 1.15.0 #1710
Comments
enough is enough |
@black2unicorn How am I supposed to interpret your comment? |
Can you paste the full trace? You've truncated it to the point where it's a little vague. A reproducible sample would be helpful |
Sorry for the late response. There is no stacktrace. The Java compiler just returns the error mentioned above. Additionally, it just returns the following:
As I said previously, a Java module is not allowed to read the same package from two different modules. So you need to use different packages in both artifacts so that the Java module system works properly. Anyway, I will most probably exchange Moshi with another library which is more reliable and contains fewer bugs. Please just keep this problem in mind. Thank you. |
I'm the author of a modularized library written in Kotlin. I use the following artifacts as dependencies for my library:
com.squareup.moshi:moshi
com.squareup.moshi:moshi-kotlin
While trying to update Moshi from 1.14.0 to 1.15.0, I add the following lines to my library's
module-info.java
, according to the module names that have been introduced in 1.15.0, probably as the result of request #1579:However, module resolution fails with the following exception:
You have created split packages here which is not allowed in the Java module system. A module is not allowed to read the same package from two different modules. Can you please fix this? Until then, I stay with Moshi 1.14.0. Thank you.
The text was updated successfully, but these errors were encountered: