Guava conflicts when using kotlin-script -util (for JSR-223 support) in an application using gRPC

I have a Spring based web application that uses gRPC to communicate with my middle tier. I would like to be able to use kotlin-script-util for the JSR-223 scripting engine. Being this kotlin-script-util relies on the dependency of the kotlin compiler (which Guava uses), I get version conflicts with gRPC dependencies.

I see there is a shaded kotlin-compiler-embed jar, but not a kotlin-script-util that uses this dependency.

Is there something I can do to make these dependencies work together?

kotlin-script -util: 1.1.1
gRPC: 1.2.0

+3


source to share


1 answer


Unfortunately, there is no ready-made solution for this problem. We will try to consider it in one of the next issues. (see KT-17556 for related issue).



As a workaround, you can, for now, compose your own kotlin-script-utils. Just copy the project, change the appropriate dependency to inline kotlin compiler, and then fix a few compilation errors by updating the import instructions (the packages are com.intellij.openapi.*

moved to org.jetbrains.kotlin.com.intellij.openapi.*

the inline kotlin compiler.)

+3


source







All Articles