-
Notifications
You must be signed in to change notification settings - Fork 9
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
Library doesn't work with multi-module project #29
Comments
Hi @graisVictory , It would be great if you can specify in which way the library has been used in your case. I've double tested the library in multi module projects and all seems to be working as expected. There might be some other issue we're not aware of that is causing problems in your setup. We would appreciate a bit more information about the issue you're experiencing so we can act accordingly :) Kind regards |
Hi @stjepanbanek, I have encounter issues with multi-modules project as well. There are two issues.
Seems to me, that's caused by there is a JsonXExtension.kt for each module. And they all contains property
In @Serializable
@JsonApiX(type = "classA")
data class ClassA(
@HasOne(type="classB")
val classB: ClassB
) In @Serializable
@JsonApiX(type = "classB")
data class ClassB(
val foo: String
) When compiling
Please let me know if I have done anything incorrect. Thanks! |
Hi @howardtamhk! Can you share your dependency setup from the project and module level I suspect you might be right about I will test myself when I get the chance. If I can reproduce the issue, I will add it to the planned fixed for the next release. Thanks for using the lib and the feedback! And for the patience :) |
Thanks @stjepanbanek! I've created a quick sample https://github.com/howardtamhk/JsonApiXTest. Let me know if you cannot reproduce the issues. |
Hi! Thanks for all your work! Library doesn't work with multi-module project because it generates the same classes with same packages for each module :(
The text was updated successfully, but these errors were encountered: