https://kotlinlang.org logo
#announcements
Title
# announcements
c

Czar

09/21/2017, 8:09 AM
After replacing kotlin-compiler with kotlin-compiler-embeddable guava problem went away:
Copy code
compile "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:
Copy code
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. 😢
i

ilya.chernikov

09/21/2017, 8:34 AM
I’ve answered in the #scripting channel, if you don’t mind.
1
3 Views