Open pemistahl opened 1 year ago
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:
error: module com.github.pemistahl.lingua reads package com.squareup.moshi from both com.squareup.moshi and com.squareup.moshi.kotlin
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.