-
Notifications
You must be signed in to change notification settings - Fork 575
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
Projects not modular, duplicate packages across JARs #3204
Comments
Assuming that JPMS is for Java Platform Module System, I fail to see what exporting means here. |
We can, but it involves doing separate compilation and creating a MR jar because our minimum is below 9.
Because effectively no one uses modules, this project predates modules existing, and no one has complained. We can probably just move the schema type that offends. Binary compatibility of that module has been broken many times without a major version bump before. If we do this, is the automatic module name still enough, or is there an actual reason to do module definitions? |
Yes, you cannot have two modules (i.e., JARs) with the same packages containing classes intended for external use, i.e., where the same package gets "exported" twice. modules-info.java cannot fix it alone, the classes would need to be moved in one of the two conflicting projects, assuming they're classes that you need exposed. I've noticed this sort of thing in quite a few square modules, in the past. |
There are projects that "export" the same packages (com.squareup.wire).
E.g.: wire.runtime.jvm and wire.schema.jvm
...which leads to errors like this, when building modular projects.
I don't know about the KT world, but this in a breach of JPMS guidelines.
Why can't we have modules-info.java or at least why do you have different JARs with the same packages?
Or am I missing something altogether in how to use these libs...
The text was updated successfully, but these errors were encountered: