Czar
09/21/2017, 8:09 AMcompile "org.jetbrains.kotlin:kotlin-script-util:$kotlinVersion", {
exclude module: 'kotlin-compiler'
}
compile "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlinVersion"
Now application compiles, but does not start, because kotlin-compiler-embeddable bundles xmlpull which clashes with xstream dependency which we use in the app:
org.xmlpull.v1.XmlPullParserException: No valid parser classes found in resource /META-INF/services/org.xmlpull.v1.XmlPullParserFactory that contained 'org.xmlpull.mxp1.MXParserFactory'
I'm abandoning the experiment. Seems embedding kotlin scripting in a serious real-world application is impossible at this point and we'll have to stick with Groovy. 😢ilya.chernikov
09/21/2017, 8:34 AM