You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The setup of the paperweight-userdev plugin fails with the following exception in multi-module projects, when one module uses the kotlinx.serialization plugin and another one doesn't (and both use paperweight-userdev). This does not happen when all modules use the plugin, as far as I can see kotlinx.serialization causes some sort of "class path isolation" between the different modules at build time.
Caused by: java.lang.ClassCastException: class io.papermc.paperweight.userdev.internal.setup.UserdevSetup$Inject cannot be cast to class io.papermc.paperweight.userdev.internal.setup.UserdevSetup (io.papermc.paperweight.userdev.internal.setup.UserdevSetup$Inject is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @61ecac73; io.papermc.paperweight.userdev.internal.setup.UserdevSetup is in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader$InstrumentingVisitableURLClassLoader @1d3c8c88)
at io.papermc.paperweight.userdev.PaperweightUser.createSetup(PaperweightUser.kt:321)
at io.papermc.paperweight.userdev.PaperweightUser.access$createSetup(PaperweightUser.kt:57)
at io.papermc.paperweight.userdev.PaperweightUser$apply$userdevSetup$2.invoke(PaperweightUser.kt:87)
at io.papermc.paperweight.userdev.PaperweightUser$apply$userdevSetup$2.invoke(PaperweightUser.kt:87)
at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at io.papermc.paperweight.userdev.PaperweightUser.apply$lambda$1(PaperweightUser.kt:87)
at io.papermc.paperweight.userdev.PaperweightUser.access$apply$lambda$1(PaperweightUser.kt:57)
at io.papermc.paperweight.userdev.PaperweightUser$apply$4.execute(PaperweightUser.kt:166)
at io.papermc.paperweight.userdev.PaperweightUser$apply$4.execute(PaperweightUser.kt:134)
at org.gradle.internal.code.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:123)
(... and more gradle-internal lines)
The setup of the paperweight-userdev plugin fails with the following exception in multi-module projects, when one module uses the kotlinx.serialization plugin and another one doesn't (and both use paperweight-userdev). This does not happen when all modules use the plugin, as far as I can see kotlinx.serialization causes some sort of "class path isolation" between the different modules at build time.
I have created a sample repository to reproduce this issue: NichtStudioCode/paperweight-userdev-kotlinx-serialization-conflict.
The text was updated successfully, but these errors were encountered: