How to install Kotlin-1.4-M2 on command line, so t...
# announcements
g
How to install Kotlin-1.4-M2 on command line, so that
kotlinc -version
shows
kotlinc-jvm 1.4-M2
?
d
Do you mean you already have kotlin 1.4-M2 installed but if you run
kotlinc -version
from terminal it doesnt show version 1.4-M2?
g
No I hv only 1.3.72 installed. I used sdkman to install
But I can't find anywhere how to upgrade to 1.4.m2
@deactivateduser
d
Hrm, seems like using sdk, it does not show preview version. I would guess it only provides release versions. Probably folks here know how to force it, I'm not quite sure for now.
================================================================================
Available Kotlin Versions
================================================================================
> * 1.3.72              1.2.71              1.1.60              1.0.5-2
1.3.71              1.2.70              1.1.51              1.0.5
1.3.70              1.2.61              1.1.50              1.0.4
1.3.61              1.2.60              1.1.4-3             1.0.3
1.3.60              1.2.51              1.1.4-2             1.0.2
1.3.50              1.2.50              1.1.4               1.0.1-2
1.3.41              1.2.41              1.1.3-2             1.0.1-1
1.3.40              1.2.40              1.1.3               1.0.1
1.3.31              1.2.31              1.1.2-5             1.0.0
1.3.30              1.2.30              1.1.2-2
1.3.21              1.2.21              1.1.2
1.3.20              1.2.20              1.1.1
1.3.11              1.2.10              1.1
1.3.10              1.2.0               1.0.7
1.3.0               1.1.61              1.0.6
================================================================================
+ - local version
* - installed
> - currently in use
================================================================================
If you want to, you can download manually from here: https://github.com/JetBrains/kotlin/releases/tag/v1.4-M2 and then configure the PATH manually in your terminal.
g
Thanks @deactivateduser, only problem with manual installation is we need to keep upgrading manually, wish there is an automated manager!
d
Totally agree with you. I believe
sdkman
should have it later once the 1.4 version is fully released. Currently 1.4 is still in preview stage.
❤️ 1