Hi :wave: very nice to see this promising alternat...
# kotlin-toolchain
p
Hi 👋 very nice to see this promising alternative to Gradle! For our introduction Kotlin course I started playing around with kotlin-toolchain to see if we can use it in our course starting in a few weeks. Just a few questions in the thread.
K 5
kodee loving 2
🐕 1
• in IntelliJ I noticed that the suggestions for library versions is not helpful (suggests very old library versions). Are there plans to improve this and also highlight library versions that can be updated. Like here:
Copy code
product: jvm/app

settings:
  kotlin:
    version: 2.4.10
    freeCompilerArgs:
      - "-Xcollection-literals"
dependencies:
  - org.jetbrains.kotlinx:kotlinx-datetime:0.8.0
  - org.jetbrains.kotlinx:kotlinx-io-core:0.8.1
  - org.jetbrains.kotlinx:kotlinx-io-bytestring:0.8.1
versions 0.8.1 can be updated to 0.9.1 • our course is focused around Ktor backend and Android app. We use some libraries (like github.com/maplibre/maplibre-compose?tab=readme-ov-file) and some plugins: Ktor plugin, Valkyrie and Compose stability analyzer plugins. Do you think these plugins will be supported?
j
the suggestions for library versions is not helpful (suggests very old library versions)
I think this feature is not from our plugin, but it's a built-in IntelliJ feature that wasn't expected to work in Kotlin Toolchain projects. It just works by chance. Thanks a lot for the report, we'll have a look at this to properly integrate with it, or hide it for now.
Regarding plugins: • Ktor is already supported via
settings.ktor.enabled
(for Ktor servers). We just don't have the Docker packaging yet, but that will come in the future (KTC-4711 Ability to produce Docker / OCI images like the Jib Gradle plugin) • Valkyrie will most not likely not be built-in, but given that they have a CLI tool, it should be easy to wrap in a local plugin. Eventually, with the support for plugins publication, it will allow the maintainers to write their own plugins. • For Compose stability analyzer, I think it's about the same as Valkyrie, so a little bit of local work until we support plugins publication
p
Thank you for this information! I will keep an eye on the Docker / OCI images feature progress. That might be a showstopper for some of my students. But good to know it will come later.
j
I see. Yeah it's not the first thing on our list right now, but we're aware that it might be nice to have other built-in packaging options for JVM apps. Note that this can also be solved by a local plugin, like a local version of the Jib plugin. We actually have done that for the klibs.io server. The plugin is define here: github.com/JetBrains/klibs-io/…/jib And used here: github.com/JetBrains/klibs-io/blob/…/module.yaml#… It's rather simple, but it is still some boilerplate, for sure.
thank you color 1