From 1.3.60 release: > Standard CLI library ko...
# kotlin-native
t
From 1.3.60 release:
Standard CLI library kotlinx.cli is shipped with the compiler distribution (GH-3215)
Does it mean that I could use
kotlinx.cli
without adding any dependency to it?
d
Yes
👍 1
t
hm, IDEA could not find any classes from
kotlinx.cli
. After adding again direct dependency they are available 🤔
o
what classes do you look for?
e
@tapchicoma If you use gradle to build your project, you need to allow K/N compiler to use endorsed libraries with
compilations["main"].enableEndorsedLibs = true
. Example https://github.com/JetBrains/kotlin-native/blob/master/samples/videoplayer/build.gradle.kts#L49 Then all classes will be available from IDEA without any dependencies. This is made so because we don't want developers using old version via dependencies have any troubles.
kotlinx.cli
is available if you run
konanc
from command line without any settings.
👍 4
t
yes, this works! Thank you for your help.
n
Is there a list of what libraries are Endorsed Libs?
e
Now there is only
kotlinx.cli
, but it's possible that some other libraries will be added later.