apomelov
07/31/2018, 7:59 AMrusshwolf
07/31/2018, 12:05 PMapomelov
07/31/2018, 12:13 PMilya.gorbunov
07/31/2018, 2:00 PMcommon module produces JVM classesThere's something wrong with the common module then, it shouldn't produce JVM classes. Have you applied
kotlin-platform-common
plugin there (and only that one)?apomelov
08/01/2018, 5:23 AMallprojects {
repositories {
jcenter()
}
if (name.endsWith("-common")) {
apply(plugin = "kotlin-platform-common")
dependencies {
"compile"("org.jetbrains.kotlin:kotlin-stdlib-common:1.2.51")
}
}
...
ilya.gorbunov
08/01/2018, 11:10 AMapomelov
08/07/2018, 1:23 PMexpectedBy(project(":model-common")
. All modules have proper stdlibs and plugins. Also there are server
and client
depending on model-jvm
and model-js
respectively. Problem is kotlin code in client
can not access data class from common
. And this case is not covered in the kotlinconf-app example.ilya.gorbunov
08/07/2018, 1:26 PMapomelov
08/07/2018, 1:32 PMmodel-js
to somewhere so client
can use it within a final webpack build? Should I do it manually or with kotlin-frontend-plugin? Can I mix JS an Kotlin code in client
? And many more questions 😃