Open laithdhawahir opened 3 years ago
Solved the issue with the following code added to the dependency block
// Resolve Conflicts
modules {
// Resolve conflict between kotless and kotlinx-serialization
module("org.jetbrains.kotlinx:kotlinx-serialization-runtime") {
replacedBy(
"org.jetbrains.kotlinx:kotlinx-serialization-json",
"kotless is using obsolete version of kotlinx.serialization"
)
}
}
My previous solution solved the build failure but caused this exception in runtime.
java.lang.NoClassDefFoundError: Could not initialize class io.kotless.dsl.utils.Json
at io.kotless.local.handler.DynamicHandler.handle(DynamicHandler.kt:46)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:501)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
at java.base/java.lang.Thread.run(Thread.java:832)
Consider for now using 1.4.* version and use Kotless 0.1.7 :)
Hi all, I have this gradle code.
When I run this, I get the following error
when I do gradle dependencies I see this
Which I suspect the issue is in org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.20.0 , I am using the right version of kotless can I resolve this issue in gradle ?