I have a problem with "konan" plugin: when this pl...
# kotlin-native
t
I have a problem with "konan" plugin: when this plugin version "1.3.30" is applied - it sets all kotlin dependencies versions to
1.3.30-eap-164
. For example:
Copy code
compile - Dependencies for compilation 'main' (target  (jvm)) (deprecated, use 'implementation ' instead).
\--- org.jetbrains.kotlin:kotlin-stdlib:1.3.30-eap-164 FAILED

compileClasspath - Compile classpath for compilation 'main' (target  (jvm)).
\--- org.jetbrains.kotlin:kotlin-stdlib:1.3.30-eap-164 FAILED
My
plugins {}
block:
Copy code
plugins {
    kotlin("jvm") version "1.3.30" apply false
    id("konan") version "1.3.30" apply false
}
d
You shouldn't be using
konan
anymore.
Use
kotlin-multiplatform
.
t
In my case I still need it 🙂
fixed by this:
Copy code
plugins {
    kotlin("jvm") version "1.3.30" apply false
    id("org.jetbrains.kotlin.konan") version "1.3.31" apply false
}
g
Konan and Kotlin JVM in the same project? 🤔
t
yes, it is https://github.com/JLLeitschuh/ktlint-gradle samples that have all kotlin plugins applied 🙂
g
what is the point of this?
and why you cannot use MPP or Kotlin platfrom plugin
t
because samples checks that all available kotlin plugins works with
ktlint-gradle
plugin
as far as I know -
konan
plugin is not yet deprecated
g
konan is deprecated
if you don’t want to use MPP, just use kotlin native platfrom plugin instead
t
But
konan
still was released with lastest Kotlin release: https://plugins.gradle.org/plugin/org.jetbrains.kotlin.konan 🤔
g
and so?
eventually it will be dropped
t
then I will remove it 🙂
g
isn’t this what “deprecation” is?
“still available but may be removed in future”