-
Notifications
You must be signed in to change notification settings - Fork 635
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
Cannot compile the project in multi-module Maven setup #2808
Comments
Is the error reproducible when running |
Having the same issue, here is by environment:
Details:
|
@jyennaco , do you have a small reproducer project? |
I will set up a small public project for you to reproduce. Thank you! |
Describe the bug
I have a multi-module Maven project, in which one of the shared modules is called
commons
and is used by other modules (let's called themA
andB
).All modules (
A
,B
andcommons
) contain classes that are@Serializable
.All modules do have
kotlinx-serialization-json-jvm
dependency.The
kotlin-maven-plugin
is configured for all modules as follows:When compiling the project, I'm getting an error on the first module that is using
commons
as dependency (e.g.A
):When I removed all
@Serializable
classes fromcommons
and got rid of the plugin there, project was compiling again.As a temporary workaround, I can suppress errors on all
@Serializable
classes which makes the compilation working:@Suppress("PROVIDED_RUNTIME_TOO_LOW", "INLINE_CLASSES_NOT_SUPPORTED")
To Reproduce
In
commons
module:In
A
module:Expected behavior
Multi-module Maven project can be compiled without any errors.
Environment
The text was updated successfully, but these errors were encountered: