I wanna use 1.4.0-dev compiler in intellij, I trie...
# kotlin-native
k
I wanna use 1.4.0-dev compiler in intellij, I tried changing multiplatform to 1.4.0-dev-NNNN. it changed libraries to 1.4.0-dev but compiler is 1.3.70-dev. why ?
m
Because last update of K/N version in Kotlin repo was month ago: https://github.com/JetBrains/kotlin/commit/df2adb060c0167d176c04c606c8eb0045a4c2ad4
k
Can I change plugin version variable ?
e
You can use gradle property
kotlin.native.version = 1.4-dev-14127
to set needed K/N version.
m
Thanks, but where one can get that "magic" number
1.4-dev-14127
?
i
Nowhere, AFAIK. But there is another way to get a nightly K/N. There are special builds of Kotlin Gradle plugin that include latest nightly K/N. They are available at Bintray (https://bintray.com/kotlin/kotlin-dev/kotlin) and have a "double" number (e.g.
1.4.0-dev-783-92
). These builds are based on a latest K/N version and Kotlin version which is compatible with this K/N.
👍 1
k
Double number works, thanks