Is there any particular recommended way of having ...
# compose-web
j
Is there any particular recommended way of having a Kotlin 1.7.20 project with Compose for Desktop and Web (but just Kotlin 1.7.10 for Web as is needed right now)?
i
You can move Web to a separate Gradle module, and use 1.7.10 in this module, and 1.7.20 in the other modules.
j
I have web stuff in a separate module (this is for https://github.com/joreilly/PeopleInSpace btw) and trying following in there for example
Copy code
kotlin("multiplatform") version "1.7.10"
but get following then
Copy code
Error resolving plugin [id: 'org.jetbrains.kotlin.multiplatform', version: '1.7.10']
> The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.
I could be missing something though in terms of how this needs to be setup
j
you need to remove kotlin plugin from buildscript dependencies block or from buildSrc
then you can apply the kotlin plugin with different version on each project plugins { kotlin(“multiplatform”) version “1.7.20” }
288 Views